pub enum AttributeObjectType {
Network,
Node,
Message,
Signal,
}Expand description
Object type that an attribute applies to.
Corresponds to the object_type in BA_DEF_:
- Empty (no prefix) = Network/database level
BU_= NodeBO_= MessageSG_= Signal
Variants§
Network
Network/database level attribute (no object prefix in BA_DEF_)
Node
Node attribute (BU_ prefix)
Message
Message attribute (BO_ prefix)
Signal
Signal attribute (SG_ prefix)
Implementations§
Source§impl AttributeObjectType
impl AttributeObjectType
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns the DBC keyword for this object type.
Returns an empty string for Network (global) attributes.
Sourcepub fn is_network(&self) -> bool
pub fn is_network(&self) -> bool
Returns true if this is a network-level attribute.
Sourcepub fn is_message(&self) -> bool
pub fn is_message(&self) -> bool
Returns true if this is a message attribute.
Trait Implementations§
Source§impl Clone for AttributeObjectType
impl Clone for AttributeObjectType
Source§fn clone(&self) -> AttributeObjectType
fn clone(&self) -> AttributeObjectType
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 AttributeObjectType
impl Debug for AttributeObjectType
Source§impl Default for AttributeObjectType
impl Default for AttributeObjectType
Source§fn default() -> AttributeObjectType
fn default() -> AttributeObjectType
Returns the “default value” for a type. Read more
Source§impl Display for AttributeObjectType
impl Display for AttributeObjectType
Source§impl Hash for AttributeObjectType
impl Hash for AttributeObjectType
Source§impl PartialEq for AttributeObjectType
impl PartialEq for AttributeObjectType
impl Copy for AttributeObjectType
impl Eq for AttributeObjectType
impl StructuralPartialEq for AttributeObjectType
Auto Trait Implementations§
impl Freeze for AttributeObjectType
impl RefUnwindSafe for AttributeObjectType
impl Send for AttributeObjectType
impl Sync for AttributeObjectType
impl Unpin for AttributeObjectType
impl UnwindSafe for AttributeObjectType
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