Struct simics_macro::attr_value::FromAttrValueField
source · struct FromAttrValueField {
ident: Option<Ident>,
ty: Type,
skip: Flag,
fallible: Flag,
}
Expand description
A field in a struct that can be converted from an AttrValue
Fields§
§ident: Option<Ident>
§ty: Type
§skip: Flag
Skip this field when converting to an AttrValue
. This flag is ignored when
converting from an AttrValue
.
fallible: Flag
Whether this field should be fallibly converted
Trait Implementations§
source§impl Debug for FromAttrValueField
impl Debug for FromAttrValueField
source§impl FromField for FromAttrValueField
impl FromField for FromAttrValueField
fn from_field(__field: &Field) -> Result<Self>
Auto Trait Implementations§
impl Freeze for FromAttrValueField
impl RefUnwindSafe for FromAttrValueField
impl !Send for FromAttrValueField
impl !Sync for FromAttrValueField
impl Unpin for FromAttrValueField
impl UnwindSafe for FromAttrValueField
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more