#[non_exhaustive]pub enum FieldSource<'a> {
Attr(&'a str),
MessageAttr(&'a str),
StartBit,
StartByte,
BitWidth,
MessageSize,
Int(i64),
Str(&'a str),
NodeName,
}Expand description
Source of a generated AttributeField value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Attr(&'a str)
Value of an attribute on the scoped object: a signal-level attribute in
AttributeScope::Signal or a message-level attribute in
AttributeScope::Message.
MessageAttr(&'a str)
Value of a message-level attribute.
StartBit
The signal’s raw DBC start bit. AttributeScope::Signal only.
StartByte
The signal’s start byte. AttributeScope::Signal only.
BitWidth
The signal’s width in bits. AttributeScope::Signal only.
MessageSize
The message size in bytes.
Int(i64)
A literal integer.
Str(&'a str)
A literal string.
NodeName
The name of the related node.
AttributeScope::NodeSignal and AttributeScope::NodeMessage only.
Trait Implementations§
Source§impl<'a> Clone for FieldSource<'a>
impl<'a> Clone for FieldSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldSource<'a>
impl<'a> RefUnwindSafe for FieldSource<'a>
impl<'a> Send for FieldSource<'a>
impl<'a> Sync for FieldSource<'a>
impl<'a> Unpin for FieldSource<'a>
impl<'a> UnsafeUnpin for FieldSource<'a>
impl<'a> UnwindSafe for FieldSource<'a>
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