pub struct NodeContext {
pub parent_address_cells: u8,
pub parent_size_cells: u8,
}Expand description
节点上下文,保存从父节点继承的信息
Fields§
§parent_address_cells: u8父节点的 #address-cells (用于解析当前节点的 reg)
parent_size_cells: u8父节点的 #size-cells (用于解析当前节点的 reg)
Trait Implementations§
Source§impl Clone for NodeContext
impl Clone for NodeContext
Source§fn clone(&self) -> NodeContext
fn clone(&self) -> NodeContext
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeContext
impl Debug for NodeContext
Auto Trait Implementations§
impl Freeze for NodeContext
impl RefUnwindSafe for NodeContext
impl Send for NodeContext
impl Sync for NodeContext
impl Unpin for NodeContext
impl UnwindSafe for NodeContext
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)