Enum json_ld_core::object::value::FragmentRef
source · [−]pub enum FragmentRef<'a, T, M> {
Entry(EntryRef<'a, T, M>),
Key(EntryKey),
Value(EntryValueRef<'a, T, M>),
JsonFragment(FragmentRef<'a, M>),
}
Expand description
Reference to any fragment that can appear in a value object.
Variants
Entry(EntryRef<'a, T, M>)
Value object entry.
Key(EntryKey)
Value object entry key.
Value(EntryValueRef<'a, T, M>)
Value object entry value.
JsonFragment(FragmentRef<'a, M>)
JSON fragment in a “@json” typed value.
Implementations
sourceimpl<'a, T, M> FragmentRef<'a, T, M>
impl<'a, T, M> FragmentRef<'a, T, M>
pub fn into_iri(self) -> Option<&'a T>
pub fn as_iri(&self) -> Option<&'a T>
pub fn is_json_array(&self) -> bool
pub fn is_json_object(&self) -> bool
pub fn sub_fragments(&self) -> SubFragments<'a, T, M>ⓘNotable traits for SubFragments<'a, T, M>impl<'a, T: 'a, M> Iterator for SubFragments<'a, T, M> type Item = FragmentRef<'a, T, M>;
Auto Trait Implementations
impl<'a, T, M> RefUnwindSafe for FragmentRef<'a, T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, M> Send for FragmentRef<'a, T, M>where
M: Sync,
T: Sync,
impl<'a, T, M> Sync for FragmentRef<'a, T, M>where
M: Sync,
T: Sync,
impl<'a, T, M> Unpin for FragmentRef<'a, T, M>
impl<'a, T, M> UnwindSafe for FragmentRef<'a, T, M>where
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