Enum json_ld_syntax::context::ValueRef
source · [−]pub enum ValueRef<'a, M, D = Definition<M>> {
One(Meta<ContextRef<'a, D>, M>),
Many(ArrayIter<'a, M, D>),
}
Expand description
Reference to a context entry.
Variants
One(Meta<ContextRef<'a, D>, M>)
Many(ArrayIter<'a, M, D>)
Implementations
Trait Implementations
sourceimpl<'a, M: Clone, D> IntoIterator for ValueRef<'a, M, D>
impl<'a, M: Clone, D> IntoIterator for ValueRef<'a, M, D>
type Item = Meta<ContextRef<'a, D>, M>
type Item = Meta<ContextRef<'a, D>, M>
The type of the elements being iterated over.
type IntoIter = ContextEntryIter<'a, M, D>
type IntoIter = ContextEntryIter<'a, M, D>
Which kind of iterator are we turning this into?
sourceimpl<'a, M: Clone, D> PrecomputeSize for ValueRef<'a, M, D>where
D: AnyDefinition<M>,
D::ContextValue: PrecomputeSize,
impl<'a, M: Clone, D> PrecomputeSize for ValueRef<'a, M, D>where
D: AnyDefinition<M>,
D::ContextValue: PrecomputeSize,
sourceimpl<'a, M: Clone, D> PrintWithSize for ValueRef<'a, M, D>where
D: AnyDefinition<M>,
D::ContextValue: PrintWithSize,
impl<'a, M: Clone, D> PrintWithSize for ValueRef<'a, M, D>where
D: AnyDefinition<M>,
D::ContextValue: PrintWithSize,
Auto Trait Implementations
impl<'a, M, D> RefUnwindSafe for ValueRef<'a, M, D>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, M, D> Send for ValueRef<'a, M, D>where
D: Sync,
M: Send + Sync,
impl<'a, M, D> Sync for ValueRef<'a, M, D>where
D: Sync,
M: Sync,
impl<'a, M, D> Unpin for ValueRef<'a, M, D>where
M: Unpin,
impl<'a, M, D> UnwindSafe for ValueRef<'a, M, D>where
D: 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