Enum rtic_syntax::ast::Access[][src]

pub enum Access {
    Exclusive,
    Shared,
}

Resource access

Variants

Exclusive

[x], a mutable resource

Shared

[&x], a static non-mutable resource

Implementations

impl Access[src]

pub fn is_exclusive(&self) -> bool[src]

Is this enum in the Exclusive variant?

pub fn is_shared(&self) -> bool[src]

Is this enum in the Shared variant?

Trait Implementations

impl Clone for Access[src]

impl Copy for Access[src]

impl Debug for Access[src]

impl PartialEq<Access> for Access[src]

impl StructuralPartialEq for Access[src]

Auto Trait Implementations

impl RefUnwindSafe for Access

impl Send for Access

impl Sync for Access

impl Unpin for Access

impl UnwindSafe for Access

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.