Enum json_ld_core::object::node::FragmentRef
source · [−]pub enum FragmentRef<'a, T, B, M> {
Entry(EntryRef<'a, T, B, M>),
Key(EntryKeyRef<'a, T, B, M>),
Value(EntryValueRef<'a, T, B, M>),
TypeFragment(Meta<&'a Id<T, B>, &'a M>),
}
Expand description
Node object fragment reference.
Variants
Entry(EntryRef<'a, T, B, M>)
Node object entry.
Key(EntryKeyRef<'a, T, B, M>)
Node object entry key.
Value(EntryValueRef<'a, T, B, M>)
Node object entry value.
TypeFragment(Meta<&'a Id<T, B>, &'a M>)
“@type” entry value fragment.
Implementations
sourceimpl<'a, T, B, M> FragmentRef<'a, T, B, M>
impl<'a, T, B, M> FragmentRef<'a, T, B, M>
pub fn into_id(self) -> Option<Meta<&'a Id<T, B>, &'a M>>
pub fn as_id(&self) -> Option<&'a Id<T, B>>
pub fn is_json_array(&self) -> bool
pub fn is_json_object(&self) -> bool
pub fn sub_fragments(&self) -> SubFragments<'a, T, B, M>ⓘNotable traits for SubFragments<'a, T, B, M>impl<'a, T, B, M> Iterator for SubFragments<'a, T, B, M> type Item = FragmentRef<'a, T, B, M>;
Auto Trait Implementations
impl<'a, T, B, M> RefUnwindSafe for FragmentRef<'a, T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, B, M> Send for FragmentRef<'a, T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<'a, T, B, M> Sync for FragmentRef<'a, T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<'a, T, B, M> Unpin for FragmentRef<'a, T, B, M>
impl<'a, T, B, M> UnwindSafe for FragmentRef<'a, T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: 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