Struct svd_rs::device::DeviceBuilder
source · [−]pub struct DeviceBuilder { /* private fields */ }
Expand description
Builder for Device
Implementations
sourceimpl 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
sourceimpl Clone for DeviceBuilder
impl Clone for DeviceBuilder
sourcefn clone(&self) -> DeviceBuilder
fn clone(&self) -> DeviceBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceBuilder
impl Debug for DeviceBuilder
sourceimpl Default for DeviceBuilder
impl Default for DeviceBuilder
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more