pub struct RawLayout;
Available on crate feature
raw-buffer
only.Expand description
Enables storing a RawBuffer
, without requiring the allocation of an inner Arc.
assert_eq!(size_of::<ArcBytes<RawLayout>>(), 4 * size_of::<usize>());
Trait Implementations§
impl AnyBufferLayout for RawLayout
impl CloneNoAllocLayout for RawLayout
impl Layout for RawLayout
impl StaticLayout for RawLayout
impl TruncateNoAllocLayout for RawLayout
Auto Trait Implementations§
impl Freeze for RawLayout
impl RefUnwindSafe for RawLayout
impl Send for RawLayout
impl Sync for RawLayout
impl Unpin for RawLayout
impl UnwindSafe for RawLayout
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more