pub enum AttributeTarget {
Network,
Node(String<{ MAX_NAME_SIZE }>),
Message(u32),
Signal(u32, String<{ MAX_NAME_SIZE }>),
}Expand description
Target object reference for attribute value assignment.
Identifies which specific object an attribute value applies to.
Variants§
Network
Network/database level (global)
Node(String<{ MAX_NAME_SIZE }>)
Node by name
Message(u32)
Message by ID
Signal(u32, String<{ MAX_NAME_SIZE }>)
Signal by (message_id, signal_name)
Implementations§
Source§impl AttributeTarget
impl AttributeTarget
Sourcepub fn to_dbc_string(&self) -> String
pub fn to_dbc_string(&self) -> String
Converts the attribute target to a DBC format string prefix.
Trait Implementations§
Source§impl Clone for AttributeTarget
impl Clone for AttributeTarget
Source§fn clone(&self) -> AttributeTarget
fn clone(&self) -> AttributeTarget
Returns a duplicate 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 AttributeTarget
impl Debug for AttributeTarget
Source§impl Display for AttributeTarget
impl Display for AttributeTarget
Source§impl Hash for AttributeTarget
impl Hash for AttributeTarget
Source§impl Ord for AttributeTarget
impl Ord for AttributeTarget
Source§fn cmp(&self, other: &AttributeTarget) -> Ordering
fn cmp(&self, other: &AttributeTarget) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeTarget
impl PartialEq for AttributeTarget
Source§impl PartialOrd for AttributeTarget
impl PartialOrd for AttributeTarget
impl Eq for AttributeTarget
impl StructuralPartialEq for AttributeTarget
Auto Trait Implementations§
impl Freeze for AttributeTarget
impl RefUnwindSafe for AttributeTarget
impl Send for AttributeTarget
impl Sync for AttributeTarget
impl Unpin for AttributeTarget
impl UnwindSafe for AttributeTarget
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