Struct fuchsia_zbi_abi::ZbiTopologyNode
source · #[repr(C)]pub struct ZbiTopologyNode {
pub entity_type: u8,
pub parent_index: u16,
pub entity: Entity,
}
Expand description
Defines the Rust version of zbi_topology_node_v2_t
in
sdk/lib/zbi-format/include/lib/zbi-format/zbi.h.
Fields§
§entity_type: u8
§parent_index: u16
§entity: Entity
Trait Implementations§
source§impl Clone for ZbiTopologyNode
impl Clone for ZbiTopologyNode
source§fn clone(&self) -> ZbiTopologyNode
fn clone(&self) -> ZbiTopologyNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl FromBytes for ZbiTopologyNode
impl FromBytes for ZbiTopologyNode
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for ZbiTopologyNode
impl FromZeros for ZbiTopologyNode
impl Copy for ZbiTopologyNode
Auto Trait Implementations§
impl Freeze for ZbiTopologyNode
impl RefUnwindSafe for ZbiTopologyNode
impl Send for ZbiTopologyNode
impl Sync for ZbiTopologyNode
impl Unpin for ZbiTopologyNode
impl UnwindSafe for ZbiTopologyNode
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