[][src]Struct roa_core::Variable

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

A wrapper of Arc.

Methods

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

pub fn value(&self) -> Arc<T>[src]

Into inner value.

impl<'_> Variable<'_, String>[src]

pub fn parse<T>(&self) -> Result<T, Error> where
    T: FromStr,
    T::Err: Display
[src]

A wrapper of str::parse. Converts T::FromStr::Err to Status automatically.

Trait Implementations

impl<'a, T: Clone> Clone for Variable<'a, T>[src]

impl<'a, T: Debug> Debug for Variable<'a, T>[src]

impl<'_, T> Deref for Variable<'_, T>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Variable<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for Variable<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for Variable<'a, T> where
    T: Send + Sync

impl<'a, T> Unpin for Variable<'a, T>

impl<'a, T> UnwindSafe for Variable<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.