[][src]Struct cvar::ClampedProp

pub struct ClampedProp<'a, T> { /* fields omitted */ }

Property node with its value clamped.

Methods

impl<'a, T> ClampedProp<'a, T>[src]

pub fn new(
    name: &'a str,
    desc: &'a str,
    variable: &'a mut T,
    default: T,
    min: T,
    max: T
) -> ClampedProp<'a, T>
[src]

Trait Implementations

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

impl<'a, T> IProperty for ClampedProp<'a, T> where
    T: FromStr + ToString + Clone + PartialEq + PartialOrd,
    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<'a, T> Send for ClampedProp<'a, T> where
    T: Send

impl<'a, T> Sync for ClampedProp<'a, 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]