Struct pinboard::NonEmptyPinboard
[−]
[src]
pub struct NonEmptyPinboard<T: Clone>(_);
An wrapper around a Pinboard
which provides the guarantee it is never empty.
Methods
impl<T: Clone> NonEmptyPinboard<T>
[src]
fn new(t: T) -> NonEmptyPinboard<T>
[src]
Create a new NonEmptyPinboard
instance holding the given value.
fn set(&self, t: T)
[src]
Update the value stored in the NonEmptyPinboard
.
fn read(&self) -> T
[src]
Get a copy of the latest (well, recent) version of the posted data.
Trait Implementations
impl<T: Clone> Debug for NonEmptyPinboard<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> Binary for NonEmptyPinboard<T> where
T: Binary,
[src]
T: Binary,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> Display for NonEmptyPinboard<T> where
T: Display,
[src]
T: Display,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T: Clone> LowerExp for NonEmptyPinboard<T> where
T: LowerExp,
[src]
T: LowerExp,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> LowerHex for NonEmptyPinboard<T> where
T: LowerHex,
[src]
T: LowerHex,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> Octal for NonEmptyPinboard<T> where
T: Octal,
[src]
T: Octal,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> Pointer for NonEmptyPinboard<T> where
T: Pointer,
[src]
T: Pointer,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> UpperExp for NonEmptyPinboard<T> where
T: UpperExp,
[src]
T: UpperExp,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T: Clone> UpperHex for NonEmptyPinboard<T> where
T: UpperHex,
[src]
T: UpperHex,