pub struct BlankNodeId<Text = String>{ /* private fields */ }Expand description
An abstract blank-node identity, independent of a concrete syntax label.
Scope is an application-assigned IRI identifying a shared blank-node domain. Use distinct scopes when importing independent sources. This crate never creates scopes or allocates global identifiers.
Implementations§
Source§impl<Text> BlankNodeId<Text>
impl<Text> BlankNodeId<Text>
Sourcepub fn try_new(
scope: Iri<Text>,
label: Text,
) -> Result<BlankNodeId<Text>, ModelError>
pub fn try_new( scope: Iri<Text>, label: Text, ) -> Result<BlankNodeId<Text>, ModelError>
Create an identity in an explicitly supplied scope.
§Errors
Returns ModelError::EmptyBlankNode if the abstract identifier is
empty.
Source§impl BlankNodeId
impl BlankNodeId
Sourcepub fn as_ref(&self) -> BlankNodeId<&str>
pub fn as_ref(&self) -> BlankNodeId<&str>
Borrow scope and label without copying their text.
Trait Implementations§
Source§impl<Text> Clone for BlankNodeId<Text>
impl<Text> Clone for BlankNodeId<Text>
Source§fn clone(&self) -> BlankNodeId<Text>
fn clone(&self) -> BlankNodeId<Text>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Text> Debug for BlankNodeId<Text>
impl<Text> Debug for BlankNodeId<Text>
Source§impl<'de, Text> Deserialize<'de> for BlankNodeId<Text>
impl<'de, Text> Deserialize<'de> for BlankNodeId<Text>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlankNodeId<Text>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlankNodeId<Text>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Text> Eq for BlankNodeId<Text>
Source§impl<Text> Hash for BlankNodeId<Text>
impl<Text> Hash for BlankNodeId<Text>
Source§impl<Text> PartialEq for BlankNodeId<Text>
impl<Text> PartialEq for BlankNodeId<Text>
Source§impl<Text> Serialize for BlankNodeId<Text>
impl<Text> Serialize for BlankNodeId<Text>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<Text> StructuralPartialEq for BlankNodeId<Text>
Auto Trait Implementations§
impl<Text> Freeze for BlankNodeId<Text>
impl<Text> RefUnwindSafe for BlankNodeId<Text>
impl<Text> Send for BlankNodeId<Text>
impl<Text> Sync for BlankNodeId<Text>
impl<Text> Unpin for BlankNodeId<Text>
impl<Text> UnsafeUnpin for BlankNodeId<Text>
impl<Text> UnwindSafe for BlankNodeId<Text>
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