Struct darling::util::WithOriginal [−][src]
pub struct WithOriginal<T, O> { pub parsed: T, pub original: O, }
A container to parse some syntax and retain access to the original.
Fields
parsed: T
original: O
Implementations
impl<T, O> WithOriginal<T, O>
[src]
impl<T, O> WithOriginal<T, O>
[src]pub fn new(parsed: T, original: O) -> WithOriginal<T, O>
[src]
Trait Implementations
impl<T, O> Clone for WithOriginal<T, O> where
T: Clone,
O: Clone,
[src]
impl<T, O> Clone for WithOriginal<T, O> where
T: Clone,
O: Clone,
[src]pub fn clone(&self) -> WithOriginal<T, O>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, O> Debug for WithOriginal<T, O> where
T: Debug,
O: Debug,
[src]
impl<T, O> Debug for WithOriginal<T, O> where
T: Debug,
O: Debug,
[src]impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
T: FromDeriveInput,
[src]
impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
T: FromDeriveInput,
[src]pub fn from_derive_input(
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>
[src]
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>
impl<T> FromField for WithOriginal<T, Field> where
T: FromField,
[src]
impl<T> FromField for WithOriginal<T, Field> where
T: FromField,
[src]pub fn from_field(value: &Field) -> Result<WithOriginal<T, Field>, Error>
[src]
impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
T: FromGenericParam,
[src]
impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
T: FromGenericParam,
[src]pub fn from_generic_param(
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>
[src]
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>
impl<T> FromGenerics for WithOriginal<T, Generics> where
T: FromGenerics,
[src]
impl<T> FromGenerics for WithOriginal<T, Generics> where
T: FromGenerics,
[src]pub fn from_generics(
value: &Generics
) -> Result<WithOriginal<T, Generics>, Error>
[src]
value: &Generics
) -> Result<WithOriginal<T, Generics>, Error>
impl<T> FromMeta for WithOriginal<T, Meta> where
T: FromMeta,
[src]
impl<T> FromMeta for WithOriginal<T, Meta> where
T: FromMeta,
[src]pub fn from_meta(value: &Meta) -> Result<WithOriginal<T, Meta>, Error>
[src]
pub fn from_nested_meta(item: &NestedMeta) -> Result<Self, Error>
[src]
pub fn from_word() -> Result<Self, Error>
[src]
pub fn from_list(items: &[NestedMeta]) -> Result<Self, Error>
[src]
pub fn from_value(value: &Lit) -> Result<Self, Error>
[src]
pub fn from_char(value: char) -> Result<Self, Error>
[src]
pub fn from_string(value: &str) -> Result<Self, Error>
[src]
pub fn from_bool(value: bool) -> Result<Self, Error>
[src]
impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
T: FromTypeParam,
[src]
impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
T: FromTypeParam,
[src]pub fn from_type_param(
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>
[src]
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>
impl<T> FromVariant for WithOriginal<T, Variant> where
T: FromVariant,
[src]
impl<T> FromVariant for WithOriginal<T, Variant> where
T: FromVariant,
[src]pub fn from_variant(value: &Variant) -> Result<WithOriginal<T, Variant>, Error>
[src]
impl<T, O> PartialEq<WithOriginal<T, O>> for WithOriginal<T, O> where
T: PartialEq<T>,
O: PartialEq<O>,
[src]
impl<T, O> PartialEq<WithOriginal<T, O>> for WithOriginal<T, O> where
T: PartialEq<T>,
O: PartialEq<O>,
[src]pub fn eq(&self, other: &WithOriginal<T, O>) -> bool
[src]
pub fn ne(&self, other: &WithOriginal<T, O>) -> bool
[src]
impl<T, O> Eq for WithOriginal<T, O> where
T: Eq,
O: Eq,
[src]
T: Eq,
O: Eq,
impl<T, O> StructuralEq for WithOriginal<T, O>
[src]
impl<T, O> StructuralPartialEq for WithOriginal<T, O>
[src]
Auto Trait Implementations
impl<T, O> RefUnwindSafe for WithOriginal<T, O> where
O: RefUnwindSafe,
T: RefUnwindSafe,
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, O> Send for WithOriginal<T, O> where
O: Send,
T: Send,
O: Send,
T: Send,
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> UnwindSafe for WithOriginal<T, O> where
O: UnwindSafe,
T: UnwindSafe,
O: UnwindSafe,
T: UnwindSafe,