pub struct MapInfo {
pub name: Name,
pub base: usize,
pub size: usize,
pub depth: usize,
/* private fields */
}Expand description
Ergonomic wrapper around zx_info_maps_t.
Fields§
§name: Name§base: usize§size: usize§depth: usizeImplementations§
Trait Implementations§
Source§impl FromBytes for MapInfowhere
Name: FromBytes,
usize: FromBytes,
zx_info_maps_type_t: FromBytes,
InfoMapsTypeUnion: FromBytes,
impl FromBytes for MapInfowhere
Name: FromBytes,
usize: FromBytes,
zx_info_maps_type_t: FromBytes,
InfoMapsTypeUnion: FromBytes,
Source§impl FromZeros for MapInfowhere
Name: FromZeros,
usize: FromZeros,
zx_info_maps_type_t: FromZeros,
InfoMapsTypeUnion: FromZeros,
impl FromZeros for MapInfowhere
Name: FromZeros,
usize: FromZeros,
zx_info_maps_type_t: FromZeros,
InfoMapsTypeUnion: FromZeros,
Source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moreSource§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moreSource§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
Extends a
Vec<Self> by pushing additional new items onto the end of
the vector. The new items are initialized with zeros.Source§impl TryFromBytes for MapInfo
impl TryFromBytes for MapInfo
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for MapInfo
impl Eq for MapInfo
impl Immutable for MapInfowhere
Name: Immutable,
usize: Immutable,
zx_info_maps_type_t: Immutable,
InfoMapsTypeUnion: Immutable,
Auto Trait Implementations§
impl Freeze for MapInfo
impl RefUnwindSafe for MapInfo
impl Send for MapInfo
impl Sync for MapInfo
impl Unpin for MapInfo
impl UnsafeUnpin for MapInfo
impl UnwindSafe for MapInfo
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