pub enum Expected<T: 'static> {
One(T),
Many(&'static [T]),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'data, T: 'static> IntoIterator for &'data Expected<T>
impl<'data, T: 'static> IntoIterator for &'data Expected<T>
impl<T: Copy + 'static> Copy for Expected<T>
impl<T: Eq + 'static> Eq for Expected<T>
impl<T: 'static> StructuralPartialEq for Expected<T>
Auto Trait Implementations§
impl<T> Freeze for Expected<T>where
T: Freeze,
impl<T> RefUnwindSafe for Expected<T>where
T: RefUnwindSafe,
impl<T> Send for Expected<T>
impl<T> Sync for Expected<T>where
T: Sync,
impl<T> Unpin for Expected<T>where
T: Unpin,
impl<T> UnwindSafe for Expected<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)