pub(crate) enum Conversion {
Forward(Forward),
Types(Types),
}Expand description
Representation of an attribute, specifying which conversions should be generated: either forwarded via a blanket impl, or direct for concrete specified types.
ⓘ
#[<attribute>(forward)]
#[<attribute>(<types>)]Variants§
Trait Implementations§
Source§impl From<Conversion> for Either<Forward, Types>
impl From<Conversion> for Either<Forward, Types>
Source§fn from(v: Conversion) -> Self
fn from(v: Conversion) -> Self
Converts to this type from the input type.
Source§impl From<Conversion> for FieldConversion
impl From<Conversion> for FieldConversion
Source§fn from(v: Conversion) -> Self
fn from(v: Conversion) -> Self
Converts to this type from the input type.
Source§impl Parse for Conversion
impl Parse for Conversion
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ParseMultiple for Conversion
impl ParseMultiple for Conversion
Source§fn merge_attrs(
prev: Spanning<Self>,
new: Spanning<Self>,
name: &Ident,
) -> Result<Spanning<Self>>
fn merge_attrs( prev: Spanning<Self>, new: Spanning<Self>, name: &Ident, ) -> Result<Spanning<Self>>
Merges multiple values of this attribute into a single one. Read more
Source§fn merge_opt_attrs(
prev: Option<Spanning<Self>>,
new: Option<Spanning<Self>>,
name: &Ident,
) -> Result<Option<Spanning<Self>>>
fn merge_opt_attrs( prev: Option<Spanning<Self>>, new: Option<Spanning<Self>>, name: &Ident, ) -> Result<Option<Spanning<Self>>>
Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl !Send for Conversion
impl !Sync for Conversion
impl Unpin for Conversion
impl UnwindSafe for Conversion
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