pub enum ExpandableRef<'a> {
Keyword(Keyword),
String(&'a str),
}Expand description
Borrowed value that IRI expansion can be applied to.
Keywords are recognised while borrowing, so that expansion does not have to match against the keyword list again.
Variants§
Keyword(Keyword)
A JSON-LD keyword.
String(&'a str)
Anything else: a term, a compact IRI, an IRI or a blank node identifier.
Trait Implementations§
Source§impl Display for ExpandableRef<'_>
impl Display for ExpandableRef<'_>
Source§impl<'a> From<&'a Id> for ExpandableRef<'a>
impl<'a> From<&'a Id> for ExpandableRef<'a>
Source§impl<'a> From<&'a KeyOrKeyword> for ExpandableRef<'a>
impl<'a> From<&'a KeyOrKeyword> for ExpandableRef<'a>
Source§fn from(k: &'a KeyOrKeyword) -> Self
fn from(k: &'a KeyOrKeyword) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a Type> for ExpandableRef<'a>
impl<'a> From<&'a Type> for ExpandableRef<'a>
Source§impl<'a> From<&'a Vocab> for ExpandableRef<'a>
impl<'a> From<&'a Vocab> for ExpandableRef<'a>
Source§impl<'a> From<&'a str> for ExpandableRef<'a>
impl<'a> From<&'a str> for ExpandableRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExpandableRef<'a>
impl<'a> RefUnwindSafe for ExpandableRef<'a>
impl<'a> Send for ExpandableRef<'a>
impl<'a> Sync for ExpandableRef<'a>
impl<'a> Unpin for ExpandableRef<'a>
impl<'a> UnsafeUnpin for ExpandableRef<'a>
impl<'a> UnwindSafe for ExpandableRef<'a>
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.