[−][src]Struct darling::util::WithOriginal
A container to parse some syntax and retain access to the original.
Fields
parsed: T
original: O
Methods
impl<T, O> WithOriginal<T, O>
[src]
pub fn new(parsed: T, original: O) -> WithOriginal<T, O>
[src]
Trait Implementations
impl<T> FromGenerics for WithOriginal<T, Generics> where
T: FromGenerics,
[src]
T: FromGenerics,
fn from_generics(value: &Generics) -> Result<WithOriginal<T, Generics>, Error>
[src]
impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
T: FromGenericParam,
[src]
T: FromGenericParam,
fn from_generic_param(
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>
[src]
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>
impl<T> FromField for WithOriginal<T, Field> where
T: FromField,
[src]
T: FromField,
fn from_field(value: &Field) -> Result<WithOriginal<T, Field>, Error>
[src]
impl<T, O> Clone for WithOriginal<T, O> where
O: Clone,
T: Clone,
[src]
O: Clone,
T: Clone,
fn clone(&self) -> WithOriginal<T, O>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, O> Eq for WithOriginal<T, O> where
O: Eq,
T: Eq,
[src]
O: Eq,
T: Eq,
impl<T, O> PartialEq<WithOriginal<T, O>> for WithOriginal<T, O> where
O: PartialEq<O>,
T: PartialEq<T>,
[src]
O: PartialEq<O>,
T: PartialEq<T>,
fn eq(&self, other: &WithOriginal<T, O>) -> bool
[src]
fn ne(&self, other: &WithOriginal<T, O>) -> bool
[src]
impl<T, O> Debug for WithOriginal<T, O> where
O: Debug,
T: Debug,
[src]
O: Debug,
T: Debug,
impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
T: FromDeriveInput,
[src]
T: FromDeriveInput,
fn from_derive_input(
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>
[src]
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>
impl<T> FromVariant for WithOriginal<T, Variant> where
T: FromVariant,
[src]
T: FromVariant,
fn from_variant(value: &Variant) -> Result<WithOriginal<T, Variant>, Error>
[src]
impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
T: FromTypeParam,
[src]
T: FromTypeParam,
fn from_type_param(
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>
[src]
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>
impl<T> FromMeta for WithOriginal<T, Meta> where
T: FromMeta,
[src]
T: FromMeta,
fn from_meta(value: &Meta) -> Result<WithOriginal<T, Meta>, Error>
[src]
fn from_nested_meta(item: &NestedMeta) -> Result<Self, Error>
[src]
fn from_word() -> Result<Self, Error>
[src]
Create an instance from the presence of the word in the attribute with no additional options specified. Read more
fn from_list(items: &[NestedMeta]) -> Result<Self, Error>
[src]
Create an instance from a list of nested meta items.
fn from_value(value: &Lit) -> Result<Self, Error>
[src]
Create an instance from a literal value of either foo = "bar"
or foo("bar")
. This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more
fn from_char(value: char) -> Result<Self, Error>
[src]
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self, Error>
[src]
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self, Error>
[src]
Create an instance from a bool literal in a value position.
Auto Trait Implementations
impl<T, O> Sync for WithOriginal<T, O> where
O: Sync,
T: Sync,
O: Sync,
T: Sync,
impl<T, O> Unpin for WithOriginal<T, O> where
O: Unpin,
T: Unpin,
O: Unpin,
T: Unpin,
impl<T, O> Send for WithOriginal<T, O> where
O: Send,
T: Send,
O: Send,
T: Send,
impl<T, O> UnwindSafe for WithOriginal<T, O> where
O: UnwindSafe,
T: UnwindSafe,
O: UnwindSafe,
T: UnwindSafe,
impl<T, O> RefUnwindSafe for WithOriginal<T, O> where
O: RefUnwindSafe,
T: RefUnwindSafe,
O: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,