pub enum RefList<'a, T> {
Borrowed(&'a [T]),
Owned(Vec<T>),
}Expand description
A borrowed or owned contiguous list inside a schema view.
Generated schemas use Borrowed with static arrays. The alloc
SchemaSet::as_schema_ref() convenience builds Owned lists while still
borrowing names from the source schema.
Variants§
Implementations§
Trait Implementations§
impl<'a, T: Eq> Eq for RefList<'a, T>
impl<'a, T: PartialEq> StructuralPartialEq for RefList<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RefList<'a, T>
impl<'a, T> RefUnwindSafe for RefList<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for RefList<'a, T>
impl<'a, T> Sync for RefList<'a, T>where
T: Sync,
impl<'a, T> Unpin for RefList<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for RefList<'a, T>
impl<'a, T> UnwindSafe for RefList<'a, T>where
T: RefUnwindSafe + UnwindSafe,
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