[][src]Struct cvar::OwnedProp

pub struct OwnedProp<T> {
    pub name: String,
    pub variable: T,
    pub default: T,
    // some fields omitted
}

Property node which owns its variable.

Fields

name: Stringvariable: Tdefault: T

Methods

impl<T> OwnedProp<T>[src]

pub fn new(name: String, variable: T, default: T) -> OwnedProp<T>[src]

Trait Implementations

impl<T> INode for OwnedProp<T> where
    T: FromStr + ToString + Clone + PartialEq,
    T::Err: StdError + Send + Sync + 'static, 
[src]

impl<T> IProperty for OwnedProp<T> where
    T: FromStr + ToString + Clone + PartialEq,
    T::Err: StdError + Send + Sync + 'static, 
[src]

fn flags(&self) -> u32[src]

Returns the flags associated with the property. Read more

fn values(&self) -> Option<&[&str]>[src]

Returns a list of valid value strings for this property. Read more

Auto Trait Implementations

impl<T> Send for OwnedProp<T> where
    T: Send

impl<T> Sync for OwnedProp<T> where
    T: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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