pub struct DeviceBuilder { /* private fields */ }
Expand description
Builder for Device
Implementations§
Source§impl DeviceBuilder
impl DeviceBuilder
Sourcepub fn description(self, value: String) -> Self
pub fn description(self, value: String) -> Self
Set the description of the device.
Sourcepub fn license_text(self, value: Option<String>) -> Self
pub fn license_text(self, value: Option<String>) -> Self
Set the license_text of the device.
Sourcepub fn header_system_filename(self, value: Option<String>) -> Self
pub fn header_system_filename(self, value: Option<String>) -> Self
Set the header_system_filename of the device.
Sourcepub fn header_definitions_prefix(self, value: Option<String>) -> Self
pub fn header_definitions_prefix(self, value: Option<String>) -> Self
Set the header_definitions_prefix of the device.
Sourcepub fn address_unit_bits(self, value: u32) -> Self
pub fn address_unit_bits(self, value: u32) -> Self
Set the address unit bits of the device.
Sourcepub fn default_register_properties(self, value: RegisterProperties) -> Self
pub fn default_register_properties(self, value: RegisterProperties) -> Self
Set the default register properties of the device.
Sourcepub fn peripherals(self, value: Vec<Peripheral>) -> Self
pub fn peripherals(self, value: Vec<Peripheral>) -> Self
Set the peripherals of the device.
Sourcepub fn no_namespace_schema_location(self, value: String) -> Self
pub fn no_namespace_schema_location(self, value: String) -> Self
Set the no_namespace_schema_location version of the device.
Sourcepub fn schema_version(self, value: String) -> Self
pub fn schema_version(self, value: String) -> Self
Set the schema version of the device.
Trait Implementations§
Source§impl Clone for DeviceBuilder
impl Clone for DeviceBuilder
Source§fn clone(&self) -> DeviceBuilder
fn clone(&self) -> DeviceBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeviceBuilder
impl Debug for DeviceBuilder
Source§impl Default for DeviceBuilder
impl Default for DeviceBuilder
Source§fn default() -> DeviceBuilder
fn default() -> DeviceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceBuilder
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
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