Enum json_ld_core::object::FragmentRef
source · pub enum FragmentRef<'a, T, B, M> {
IndexEntry(&'a str),
IndexKey,
IndexValue(&'a str),
Object(&'a Object<T, B, M>),
IndexedObject(&'a Indexed<Object<T, B, M>, M>),
Node(&'a Node<T, B, M>),
IndexedNode(&'a IndexedNode<T, B, M>),
IndexedNodeList(&'a [StrippedIndexedNode<T, B, M>]),
ValueFragment(FragmentRef<'a, T, M>),
ListFragment(FragmentRef<'a, T, B, M>),
NodeFragment(FragmentRef<'a, T, B, M>),
}
Expand description
JSON-LD object fragment.
Variants
IndexEntry(&'a str)
“@index” entry.
IndexKey
“@index” entry key.
IndexValue(&'a str)
“@index” entry value.
Object(&'a Object<T, B, M>)
Object.
IndexedObject(&'a Indexed<Object<T, B, M>, M>)
Indexed object.
Node(&'a Node<T, B, M>)
Node object.
IndexedNode(&'a IndexedNode<T, B, M>)
Indexed node object.
IndexedNodeList(&'a [StrippedIndexedNode<T, B, M>])
ValueFragment(FragmentRef<'a, T, M>)
Value object fragment.
ListFragment(FragmentRef<'a, T, B, M>)
List object fragment.
NodeFragment(FragmentRef<'a, T, B, M>)
Node object 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_ref(self) -> Option<Ref<'a, T, B, M>>
pub fn into_id(self) -> Option<Id<&'a T, &'a B>>
pub fn as_id(&self) -> Option<Id<&'a T, &'a 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