pub struct AddressBlockBuilder { /* private fields */ }Expand description
Builder for AddressBlock
Implementations§
Source§impl AddressBlockBuilder
impl AddressBlockBuilder
Sourcepub fn usage(self, value: AddressBlockUsage) -> Self
pub fn usage(self, value: AddressBlockUsage) -> Self
Set the usage of the block
Sourcepub fn protection(self, value: Option<Protection>) -> Self
pub fn protection(self, value: Option<Protection>) -> Self
Set the protection of the block
Sourcepub fn build(self, lvl: ValidateLevel) -> Result<AddressBlock, SvdError>
pub fn build(self, lvl: ValidateLevel) -> Result<AddressBlock, SvdError>
Validate and build a AddressBlock.
Trait Implementations§
Source§impl Clone for AddressBlockBuilder
impl Clone for AddressBlockBuilder
Source§fn clone(&self) -> AddressBlockBuilder
fn clone(&self) -> AddressBlockBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressBlockBuilder
impl Debug for AddressBlockBuilder
Source§impl Default for AddressBlockBuilder
impl Default for AddressBlockBuilder
Source§fn default() -> AddressBlockBuilder
fn default() -> AddressBlockBuilder
Returns the “default value” for a type. Read more
impl Eq for AddressBlockBuilder
Source§impl From<AddressBlock> for AddressBlockBuilder
impl From<AddressBlock> for AddressBlockBuilder
Source§fn from(d: AddressBlock) -> Self
fn from(d: AddressBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressBlockBuilder
impl PartialEq for AddressBlockBuilder
impl StructuralPartialEq for AddressBlockBuilder
Auto Trait Implementations§
impl Freeze for AddressBlockBuilder
impl RefUnwindSafe for AddressBlockBuilder
impl Send for AddressBlockBuilder
impl Sync for AddressBlockBuilder
impl Unpin for AddressBlockBuilder
impl UnsafeUnpin for AddressBlockBuilder
impl UnwindSafe for AddressBlockBuilder
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