pub struct DataStack { /* private fields */ }Expand description
Per-thread data stack for bump-allocating frame-local data.
Implementations§
Source§impl DataStack
impl DataStack
Sourcepub fn has_space(&self, size: usize) -> bool
pub fn has_space(&self, size: usize) -> bool
Check if the current chunk has at least size bytes available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataStack
impl RefUnwindSafe for DataStack
impl !Sync for DataStack
impl Unpin for DataStack
impl UnsafeUnpin for DataStack
impl UnwindSafe for DataStack
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