Struct svd_rs::device::DeviceBuilder
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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 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