pub struct NodeBase<'a> {
pub address_cells: u8,
pub size_cells: u8,
/* private fields */
}Expand description
基础节点结构
Fields§
§address_cells: u8当前节点的 #address-cells(用于子节点)
size_cells: u8当前节点的 #size-cells(用于子节点)
Implementations§
Source§impl<'a> NodeBase<'a>
impl<'a> NodeBase<'a>
pub fn name(&self) -> &'a str
pub fn level(&self) -> usize
Sourcepub fn properties(&self) -> PropIter<'a> ⓘ
pub fn properties(&self) -> PropIter<'a> ⓘ
获取节点属性迭代器
Sourcepub fn find_property(&self, name: &str) -> Option<Property<'a>>
pub fn find_property(&self, name: &str) -> Option<Property<'a>>
查找指定名称的属性
Sourcepub fn find_property_str(&self, name: &str) -> Option<&'a str>
pub fn find_property_str(&self, name: &str) -> Option<&'a str>
查找指定名称的字符串属性
pub fn ranges(&self) -> Option<VecRange<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeBase<'a>
impl<'a> RefUnwindSafe for NodeBase<'a>
impl<'a> Send for NodeBase<'a>
impl<'a> Sync for NodeBase<'a>
impl<'a> Unpin for NodeBase<'a>
impl<'a> UnwindSafe for NodeBase<'a>
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)