Enum json_ld_syntax::context::term_definition::FragmentRef
source · [−]pub enum FragmentRef<'a, M, C> {
Entry(EntryRef<'a, M, C>),
Key(EntryKey),
Value(EntryValueRef<'a, M, C>),
ContainerFragment(&'a Meta<ContainerKind, M>),
}
Expand description
Term definition fragment.
Variants
Entry(EntryRef<'a, M, C>)
Term definition entry.
Key(EntryKey)
Term definition entry key.
Value(EntryValueRef<'a, M, C>)
Term definition entry value.
ContainerFragment(&'a Meta<ContainerKind, M>)
Container value 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
C: AnyValue<M>,
pub fn sub_fragments(&self) -> SubFragments<'a, M, C>ⓘNotable traits for SubFragments<'a, M, C>impl<'a, M, C: 'a> Iterator for SubFragments<'a, M, C> type Item = FragmentRef<'a, M, C>;
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