Struct wasmi::memory_units::Bytes
[−]pub struct Bytes(pub usize);
Expand description
Memory size specified in bytes.
Tuple Fields
0: usize
Trait Implementations
impl Ord for Bytes
impl Ord for Bytes
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<Bytes> for Bytes
impl PartialOrd<Bytes> for Bytes
impl Copy for Bytes
impl Eq for Bytes
impl StructuralEq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moreimpl<T> RoundUpTo<Bytes> for Twhere
T: Into<Bytes>,
impl<T> RoundUpTo<Bytes> for Twhere
T: Into<Bytes>,
fn round_up_to(self) -> Bytes
fn round_up_to(self) -> Bytes
Returns minimum number of
T
to fit amount of space occupied by self
.impl<T> RoundUpTo<Pages> for Twhere
T: Into<Bytes>,
impl<T> RoundUpTo<Pages> for Twhere
T: Into<Bytes>,
fn round_up_to(self) -> Pages
fn round_up_to(self) -> Pages
Returns minimum number of
T
to fit amount of space occupied by self
.impl<T> RoundUpTo<Pages> for Twhere
T: Into<Bytes>,
impl<T> RoundUpTo<Pages> for Twhere
T: Into<Bytes>,
fn round_up_to(self) -> Pages
fn round_up_to(self) -> Pages
Returns minimum number of
T
to fit amount of space occupied by self
.impl<T> RoundUpTo<Words> for Twhere
T: Into<Bytes>,
impl<T> RoundUpTo<Words> for Twhere
T: Into<Bytes>,
fn round_up_to(self) -> Words
fn round_up_to(self) -> Words
Returns minimum number of
T
to fit amount of space occupied by self
.impl<T> RoundUpTo<Words> for Twhere
T: Into<Bytes>,
impl<T> RoundUpTo<Words> for Twhere
T: Into<Bytes>,
fn round_up_to(self) -> Words
fn round_up_to(self) -> Words
Returns minimum number of
T
to fit amount of space occupied by self
.