pub enum Value {}
Expand description

Kind defining parsing an Attrs’ field as values behind a syn::Ident.

#[attr(ident = value)]
#[attr(ident value)]
#[attr(ident(value1, value2))]

Trait Implementations§

source§

impl Clone for Value

source§

fn clone(&self) -> Value

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Value

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<V: Ord> TryApply<V, Value, First> for BTreeSet<V>

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V, S> TryApply<V, Value, First> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V: PartialEq> TryApply<V, Value, First> for Vec<V>

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V: Ord> TryApply<V, Value, Last> for BTreeSet<V>

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V, S> TryApply<V, Value, Last> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V: PartialEq> TryApply<V, Value, Last> for Vec<V>

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V> TryApply<V, Value, Unique> for BTreeSet<V>where for<'a> &'a V: IntoSpan, V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V, S> TryApply<V, Value, Unique> for HashSet<V, S>where for<'a> &'a V: IntoSpan, V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V> TryApply<V, Value, Unique> for Vec<V>where for<'a> &'a V: IntoSpan, V: PartialEq,

source§

fn try_apply(&mut self, val: V) -> Result<()>

Applies the provided value to this field::Container. Read more
source§

impl<V, D> TryApplySelf<V, Value, D> for BTreeSet<V>where D: Dedup + ?Sized, Self: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: Self) -> Result<()>

Applies the value extracted from another field::Container to this field::Container. Read more
source§

impl<V, S, D> TryApplySelf<V, Value, D> for HashSet<V, S>where D: Dedup + ?Sized, S: BuildHasher, Self: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: Self) -> Result<()>

Applies the value extracted from another field::Container to this field::Container. Read more
source§

impl<V, D> TryApplySelf<V, Value, D> for Vec<V>where D: Dedup + ?Sized, Self: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: Self) -> Result<()>

Applies the value extracted from another field::Container to this field::Container. Read more
source§

impl Copy for Value

source§

impl Kind for Value

source§

impl Single for Value

Auto Trait Implementations§

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, V> TryMerge<V> for Twhere T: ?Sized,

source§

fn try_merge<K, D>(&mut self, val: V) -> Result<(), Error>where T: TryApply<V, K, D>, K: Kind + ?Sized, D: Dedup + ?Sized,

Merges the provided value to this field::Container with the specified parsing Kind and Deduplication strategy. Read more
source§

fn try_merge_self<K, D>(&mut self, another: T) -> Result<(), Error>where T: TryApplySelf<V, K, D>, K: Kind + ?Sized, D: Dedup + ?Sized,

Merges the value extracted from another field::Container to this field::Container with the specified parsing Kind and Deduplication strategy. Read more
source§

impl<T> Validate for Twhere T: ?Sized,

source§

fn validate<R>(&self) -> Result<(), Error>where R: Rule + ?Sized, T: Validation<R>,

Checks whether the specified validation Rule is satisfied. Read more