pub trait Property: Sized + Sealed {
// Required method
fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self>;
}
Expand description
Implemented for types that can be read as properties.
This is implemented for strings, integers and arrays of integers. It’s used
to make FwNode::property_read
generic over the type of property being
read. There are also two dedicated methods to read other types, because they
require more specialized function signatures:
It must be public, because it appears in the signatures of other public functions, but its methods shouldn’t be used outside the kernel crate.
Required Methods§
Sourcefn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self>
fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self>
Used to make FwNode::property_read
generic.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.