pub enum FragmentRef<'a, T> {
Entry(EntryRef<'a, T>),
Key(EntryKey),
Value(EntryValueRef<'a, T>),
JsonFragment(FragmentRef<'a>),
}
Expand description
Reference to any fragment that can appear in a value object.
Variants§
Entry(EntryRef<'a, T>)
Value object entry.
Key(EntryKey)
Value object entry key.
Value(EntryValueRef<'a, T>)
Value object entry value.
JsonFragment(FragmentRef<'a>)
JSON fragment in a “@json” typed value.
Implementations§
Source§impl<'a, T> FragmentRef<'a, T>
impl<'a, T> FragmentRef<'a, T>
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> ⓘ
Auto Trait Implementations§
impl<'a, T> Freeze for FragmentRef<'a, T>
impl<'a, T> RefUnwindSafe for FragmentRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FragmentRef<'a, T>where
T: Sync,
impl<'a, T> Sync for FragmentRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for FragmentRef<'a, T>
impl<'a, T> UnwindSafe for FragmentRef<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more