pub enum EitherLifetime<'short, 'long> {
Short(&'short [u8]),
Long(&'long [u8]),
}
Expand description
Represents a buffer with one of two lifetimes.
Variants§
Auto Trait Implementations§
impl<'short, 'long> Freeze for EitherLifetime<'short, 'long>
impl<'short, 'long> RefUnwindSafe for EitherLifetime<'short, 'long>
impl<'short, 'long> Send for EitherLifetime<'short, 'long>
impl<'short, 'long> Sync for EitherLifetime<'short, 'long>
impl<'short, 'long> Unpin for EitherLifetime<'short, 'long>
impl<'short, 'long> UnwindSafe for EitherLifetime<'short, 'long>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes
Size for each variant:
Short
: 8 bytesLong
: 8 bytes