[][src]Struct pinboard::NonEmptyPinboard

pub struct NonEmptyPinboard<T: Clone + 'static>(_);

An wrapper around a Pinboard which provides the guarantee it is never empty.

Implementations

impl<T: Clone + 'static> NonEmptyPinboard<T>[src]

pub fn new(t: T) -> NonEmptyPinboard<T>[src]

Create a new NonEmptyPinboard instance holding the given value.

pub fn set(&self, t: T)[src]

Update the value stored in the NonEmptyPinboard.

pub fn read(&self) -> T[src]

Get a copy of the latest (well, recent) version of the posted data.

Trait Implementations

impl<T: Clone + 'static> Binary for NonEmptyPinboard<T> where
    T: Binary
[src]

impl<T: Clone + 'static> Debug for NonEmptyPinboard<T> where
    T: Debug
[src]

impl<T: Clone + 'static> Display for NonEmptyPinboard<T> where
    T: Display
[src]

impl<T: Clone + 'static> LowerExp for NonEmptyPinboard<T> where
    T: LowerExp
[src]

impl<T: Clone + 'static> LowerHex for NonEmptyPinboard<T> where
    T: LowerHex
[src]

impl<T: Clone + 'static> Octal for NonEmptyPinboard<T> where
    T: Octal
[src]

impl<T: Clone + 'static> Pointer for NonEmptyPinboard<T> where
    T: Pointer
[src]

impl<T: Clone + 'static> UpperExp for NonEmptyPinboard<T> where
    T: UpperExp
[src]

impl<T: Clone + 'static> UpperHex for NonEmptyPinboard<T> where
    T: UpperHex
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for NonEmptyPinboard<T> where
    T: RefUnwindSafe

impl<T> Send for NonEmptyPinboard<T> where
    T: Pointable + Send + Sync

impl<T> Sync for NonEmptyPinboard<T> where
    T: Pointable + Send + Sync

impl<T> Unpin for NonEmptyPinboard<T>

impl<T> UnwindSafe for NonEmptyPinboard<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> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToString for T where
    T: Display + ?Sized
[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.