#[repr(transparent)]pub struct DevEnum(pub i16);Expand description
A value of an enumerated attribute: the index of its label among the labels of the
attribute, see crate::dev::AttrConfig::enum_labels.
Tuple Fields§
§0: i16Trait Implementations§
impl Copy for DevEnum
Source§impl Element for DevEnum
impl Element for DevEnum
Source§const INLINE_FIXED: bool
const INLINE_FIXED: bool
Whether a scalar of this type is held in place of a storage, which only a packed
type small enough can be.
Source§type Ref<'a> = DevEnum
type Ref<'a> = DevEnum
How one value is given out: by value for a packed type, borrowed for a string.
Source§type Spans = PackedSpans<DevEnum>
type Spans = PackedSpans<DevEnum>
Where the values are in the storage.
impl Eq for DevEnum
Source§impl PackedElement for DevEnum
impl PackedElement for DevEnum
Source§fn validate_all(_bytes: &[u8]) -> bool
fn validate_all(_bytes: &[u8]) -> bool
Whether the octets of a whole number of consecutive values are all valid values,
in a single pass: what octets are checked with when they are cast, and what
Element::validate is for one value.impl StructuralPartialEq for DevEnum
Source§impl TangoElement for DevEnum
impl TangoElement for DevEnum
Source§const ATTR_KIND: AttrDataKind = AttrDataKind::Enum
const ATTR_KIND: AttrDataKind = AttrDataKind::Enum
The kind of an attribute of such values.
Source§const CMD_SCALAR_KIND: Option<CommandDataKind> = None
const CMD_SCALAR_KIND: Option<CommandDataKind> = None
The kind of a command argument of one such value, absent if none can be.
Source§const CMD_ARRAY_KIND: Option<CommandDataKind> = None
const CMD_ARRAY_KIND: Option<CommandDataKind> = None
The kind of a command argument of an array of such values, absent if none can be.
fn wrap(format: ValueFormat<Self>) -> Value
fn unwrap(data: Value) -> Result<ValueFormat<Self>, Value>
fn unwrap_ref(data: &Value) -> Option<&ValueFormat<Self>>
Auto Trait Implementations§
impl Freeze for DevEnum
impl RefUnwindSafe for DevEnum
impl Send for DevEnum
impl Sync for DevEnum
impl Unpin for DevEnum
impl UnsafeUnpin for DevEnum
impl UnwindSafe for DevEnum
Blanket Implementations§
Source§impl<T> AttrData for Twhere
T: TangoElement + PackedElement,
impl<T> AttrData for Twhere
T: TangoElement + PackedElement,
const DATA_KIND: AttrDataKind = const DATA_KIND: AttrDataKind = <Buf<T, 0> as AttrData>::DATA_KIND;
const DATA_FORMAT: AttrDataFormat = const DATA_FORMAT: AttrDataFormat = <Buf<T, 0> as AttrData>::DATA_FORMAT;
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