Skip to main content

HasSize

Trait HasSize 

Source
pub trait HasSize {
    // Required method
    fn size(&self) -> usize;
}
Expand description

Memory objects that have a length in bytes.

Required Methods§

Source

fn size(&self) -> usize

Returns the size of the memory object in bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: HasSize> HasSize for &T

Source§

fn size(&self) -> usize

Source§

impl<T: HasSize> HasSize for &mut T

Source§

fn size(&self) -> usize

Source§

impl<T: HasSize> HasSize for Arc<T>

Source§

fn size(&self) -> usize

Source§

impl<T: HasSize> HasSize for Box<T>

Source§

fn size(&self) -> usize

Source§

impl<T: HasSize> HasSize for Rc<T>

Source§

fn size(&self) -> usize

Implementors§

Source§

impl HasSize for DmaCoherent

Source§

impl<D: DmaDirection> HasSize for DmaStream<D>

Source§

impl<M: AnyFrameMeta + ?Sized> HasSize for Frame<M>

Source§

impl<M: AnyFrameMeta + ?Sized> HasSize for Segment<M>

Source§

impl<M: AnyFrameMeta + ?Sized> HasSize for UniqueFrame<M>

Source§

impl<SecuritySensitivity> HasSize for IoMem<SecuritySensitivity>