Enum json_ld_syntax::context::ContextRef
source · pub enum ContextRef<'a, D> {
Null,
IriRef(IriRef<'a>),
Definition(&'a D),
}
Expand description
Reference to context.
Variants§
Implementations§
source§impl<'a, D> ContextRef<'a, D>
impl<'a, D> ContextRef<'a, D>
pub fn is_object(&self) -> bool
pub fn sub_items<M>(&self) -> ContextSubFragments<'a, M, D> ⓘwhere D: AnyDefinition<M>,
Trait Implementations§
source§impl<'a, D> Clone for ContextRef<'a, D>
impl<'a, D> Clone for ContextRef<'a, D>
source§impl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
impl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
impl<'a, D> Copy for ContextRef<'a, D>
Auto Trait Implementations§
impl<'a, D> RefUnwindSafe for ContextRef<'a, D>where D: RefUnwindSafe,
impl<'a, D> Send for ContextRef<'a, D>where D: Sync,
impl<'a, D> Sync for ContextRef<'a, D>where D: Sync,
impl<'a, D> Unpin for ContextRef<'a, D>
impl<'a, D> UnwindSafe for ContextRef<'a, D>where D: RefUnwindSafe,
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