pub struct BcoPlugAddr {
pub direction: BcoPlugDirection,
pub mode: BcoPlugAddrMode,
}
Expand description
Address of plug.
Fields§
§direction: BcoPlugDirection
The direction of plug.
mode: BcoPlugAddrMode
The mode to address for the plug.
Implementations§
Source§impl BcoPlugAddr
impl BcoPlugAddr
Sourcepub fn new_for_unit(
direction: BcoPlugDirection,
plug_type: BcoPlugAddrUnitType,
plug_id: u8,
) -> Self
pub fn new_for_unit( direction: BcoPlugDirection, plug_type: BcoPlugAddrUnitType, plug_id: u8, ) -> Self
Instantiate address structure to plug for unit.
Sourcepub fn new_for_subunit(direction: BcoPlugDirection, plug_id: u8) -> Self
pub fn new_for_subunit(direction: BcoPlugDirection, plug_id: u8) -> Self
Instantiate address structure to plug for subunit.
Sourcepub fn new_for_func_blk(
direction: BcoPlugDirection,
func_blk_type: u8,
func_blk_id: u8,
plug_id: u8,
) -> Self
pub fn new_for_func_blk( direction: BcoPlugDirection, func_blk_type: u8, func_blk_id: u8, plug_id: u8, ) -> Self
Instantiate address structure to plug for function block.
Trait Implementations§
Source§impl Clone for BcoPlugAddr
impl Clone for BcoPlugAddr
Source§fn clone(&self) -> BcoPlugAddr
fn clone(&self) -> BcoPlugAddr
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 BcoPlugAddr
impl Debug for BcoPlugAddr
Source§impl Default for BcoPlugAddr
impl Default for BcoPlugAddr
Source§fn default() -> BcoPlugAddr
fn default() -> BcoPlugAddr
Returns the “default value” for a type. Read more
Source§impl PartialEq for BcoPlugAddr
impl PartialEq for BcoPlugAddr
impl Copy for BcoPlugAddr
impl Eq for BcoPlugAddr
impl StructuralPartialEq for BcoPlugAddr
Auto Trait Implementations§
impl Freeze for BcoPlugAddr
impl RefUnwindSafe for BcoPlugAddr
impl Send for BcoPlugAddr
impl Sync for BcoPlugAddr
impl Unpin for BcoPlugAddr
impl UnwindSafe for BcoPlugAddr
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