Enum json_ld_syntax::context::definition::FragmentRef
source · [−]pub enum FragmentRef<'a, M, C> {
Entry(EntryRef<'a, M, C>),
Key(EntryKeyRef<'a>),
Value(EntryValueRef<'a, M, C>),
TermDefinitionFragment(FragmentRef<'a, M, C>),
}
Expand description
Context definition fragment.
Variants
Entry(EntryRef<'a, M, C>)
Context definition entry.
Key(EntryKeyRef<'a>)
Context definition entry key.
Value(EntryValueRef<'a, M, C>)
Context definition entry value.
TermDefinitionFragment(FragmentRef<'a, M, C>)
Term definition fragment.
Implementations
sourceimpl<'a, M, C> FragmentRef<'a, M, C>
impl<'a, M, C> FragmentRef<'a, M, C>
pub fn is_key(&self) -> bool
pub fn is_entry(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_object(&self) -> boolwhere
M: Clone,
C: AnyValue<M>,
pub fn sub_items(&self) -> SubItems<'a, M, C>ⓘNotable traits for SubItems<'a, M, C>impl<'a, M, C> Iterator for SubItems<'a, M, C> type Item = FragmentRef<'a, M, C>;
where
M: Clone,
Auto Trait Implementations
impl<'a, M, C> RefUnwindSafe for FragmentRef<'a, M, C>where
C: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, M, C> Send for FragmentRef<'a, M, C>where
C: Sync,
M: Send + Sync,
impl<'a, M, C> Sync for FragmentRef<'a, M, C>where
C: Sync,
M: Sync,
impl<'a, M, C> Unpin for FragmentRef<'a, M, C>where
M: Unpin,
impl<'a, M, C> UnwindSafe for FragmentRef<'a, M, C>where
C: RefUnwindSafe,
M: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more