pub struct BaseDts {
pub family_dir: &'static str,
pub entry: String,
}Expand description
A base device tree selected for a chip.
Fields§
§family_dir: &'static strFamily subdirectory under database/dts/ (e.g. imx9, stm32mp2). This
is the include-search root a downstream cpp -I needs so the base’s
local #include "..." directives resolve.
entry: StringThe entry file name, with extension (e.g. stm32mp257f-dk.dts or
stm32mp257.dtsi).
Implementations§
Source§impl BaseDts
impl BaseDts
Sourcepub fn is_board(&self) -> bool
pub fn is_board(&self) -> bool
Whether the entry is a full board .dts (as opposed to a generic
.dtsi). A .dts carries /dts-v1/; and board-level nodes; a .dtsi
is a SoC include with no board layer.
Sourcepub fn entry_path(&self) -> String
pub fn entry_path(&self) -> String
Path of the entry file within the embedded tree (e.g.
imx9/imx95-15x15-frdm.dts).
Trait Implementations§
impl Eq for BaseDts
impl StructuralPartialEq for BaseDts
Auto Trait Implementations§
impl Freeze for BaseDts
impl RefUnwindSafe for BaseDts
impl Send for BaseDts
impl Sync for BaseDts
impl Unpin for BaseDts
impl UnsafeUnpin for BaseDts
impl UnwindSafe for BaseDts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.