[][src]Struct ics::components::Parameter

pub struct Parameter<'a> { /* fields omitted */ }

A Parameter is a key-value that can be added to a property to specify it more.

This can be used to create a new calendar parameter by either creating a wrapper type or just use it as it is.

Methods

impl<'a> Parameter<'a>[src]

pub fn new<K, V>(key: K, value: V) -> Self where
    K: Into<Cow<'a, str>>,
    V: Into<Cow<'a, str>>, 
[src]

Creates a new property with the given key and value.

Trait Implementations

impl<'a> PartialOrd<Parameter<'a>> for Parameter<'a>[src]

impl<'a> PartialEq<Parameter<'a>> for Parameter<'a>[src]

impl<'a> Ord for Parameter<'a>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<'a> Eq for Parameter<'a>[src]

impl<'a> From<AltRep<'a>> for Parameter<'a>[src]

impl<'a> From<CN<'a>> for Parameter<'a>[src]

impl<'a> From<CUType<'a>> for Parameter<'a>[src]

impl<'a> From<DelegatedFrom<'a>> for Parameter<'a>[src]

impl<'a> From<DelegatedTo<'a>> for Parameter<'a>[src]

impl<'a> From<Dir<'a>> for Parameter<'a>[src]

impl<'a> From<FmtType<'a>> for Parameter<'a>[src]

impl<'a> From<FBType<'a>> for Parameter<'a>[src]

impl<'a> From<Language<'a>> for Parameter<'a>[src]

impl<'a> From<Member<'a>> for Parameter<'a>[src]

impl<'a> From<PartStat<'a>> for Parameter<'a>[src]

impl<'a> From<RelType<'a>> for Parameter<'a>[src]

impl<'a> From<Role<'a>> for Parameter<'a>[src]

impl<'a> From<SentBy<'a>> for Parameter<'a>[src]

impl<'a> From<TzIDParam<'a>> for Parameter<'a>[src]

impl<'a> From<Value<'a>> for Parameter<'a>[src]

impl<'a> From<Encoding> for Parameter<'a>[src]

impl<'a> From<Range> for Parameter<'a>[src]

impl<'a> From<Related> for Parameter<'a>[src]

impl<'a> From<RSVP> for Parameter<'a>[src]

impl<'a> From<Display<'a>> for Parameter<'a>[src]

impl<'a> From<Email<'a>> for Parameter<'a>[src]

impl<'a> From<Feature<'a>> for Parameter<'a>[src]

impl<'a> From<Label<'a>> for Parameter<'a>[src]

impl<'a> Clone for Parameter<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Hash for Parameter<'a>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Debug for Parameter<'a>[src]

impl<'a> Display for Parameter<'a>[src]

Auto Trait Implementations

impl<'a> Send for Parameter<'a>

impl<'a> Unpin for Parameter<'a>

impl<'a> Sync for Parameter<'a>

impl<'a> UnwindSafe for Parameter<'a>

impl<'a> RefUnwindSafe for Parameter<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]