pub struct Path<'a> { /* private fields */ }
Expand description

设备树节点路径。

Implementations

返回路径层数。定义根节点的子节点层数为 0。

返回路径最后一级的节点名。

将路径字符串格式化到 buf 中。

如果返回 Ok(n),表示字符串长度为 nn 不大于 buf.len())。 如果返回 Err(n),表示缓冲区长度无法存放整个字符串,实现保证 n 等于 buf.len()

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.