pub struct LinksExternalIds { /* private fields */ }Expand description
The ids of one scheme; see the module documentation. Every method takes the store of the table: the data or a store of its own.
Implementations§
Source§impl LinksExternalIds
impl LinksExternalIds
Sourcepub fn new(scheme: &str) -> Result<Self>
pub fn new(scheme: &str) -> Result<Self>
The ids of scheme, such as uuid; a scheme has no colon.
Sourcepub fn find(
&self,
store: &mut dyn NamedTypeLinks,
id: &str,
) -> Result<Option<u32>>
pub fn find( &self, store: &mut dyn NamedTypeLinks, id: &str, ) -> Result<Option<u32>>
The link id is bound to, None when it is bound to none.
Sourcepub fn id_of(
&self,
store: &mut dyn NamedTypeLinks,
link: u32,
) -> Result<Option<String>>
pub fn id_of( &self, store: &mut dyn NamedTypeLinks, link: u32, ) -> Result<Option<String>>
The id link is bound to, None when it has none.
Sourcepub fn bind(
&self,
store: &mut dyn NamedTypeLinks,
id: &str,
link: u32,
) -> Result<u32>
pub fn bind( &self, store: &mut dyn NamedTypeLinks, id: &str, link: u32, ) -> Result<u32>
Binds id to link, instead of any link it had and of any id the
link had; returns the pair that binds them.
Sourcepub fn ensure(
&self,
store: &mut dyn NamedTypeLinks,
data: Option<&mut dyn NamedTypeLinks>,
id: &str,
) -> Result<u32>
pub fn ensure( &self, store: &mut dyn NamedTypeLinks, data: Option<&mut dyn NamedTypeLinks>, id: &str, ) -> Result<u32>
The link id is bound to, a new point (l: l l) of data bound to
it when it has none. data is None when the table is in the data.
Trait Implementations§
Source§impl Clone for LinksExternalIds
impl Clone for LinksExternalIds
Source§impl Debug for LinksExternalIds
impl Debug for LinksExternalIds
impl Eq for LinksExternalIds
Source§impl PartialEq for LinksExternalIds
impl PartialEq for LinksExternalIds
impl StructuralPartialEq for LinksExternalIds
Auto Trait Implementations§
impl Freeze for LinksExternalIds
impl RefUnwindSafe for LinksExternalIds
impl Send for LinksExternalIds
impl Sync for LinksExternalIds
impl Unpin for LinksExternalIds
impl UnsafeUnpin for LinksExternalIds
impl UnwindSafe for LinksExternalIds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more