[−][src]Struct pinboard::NonEmptyPinboard
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]
T: Binary,
impl<T: Clone + 'static> Debug for NonEmptyPinboard<T> where
T: Debug,
[src]
T: Debug,
impl<T: Clone + 'static> Display for NonEmptyPinboard<T> where
T: Display,
[src]
T: Display,
impl<T: Clone + 'static> LowerExp for NonEmptyPinboard<T> where
T: LowerExp,
[src]
T: LowerExp,
impl<T: Clone + 'static> LowerHex for NonEmptyPinboard<T> where
T: LowerHex,
[src]
T: LowerHex,
impl<T: Clone + 'static> Octal for NonEmptyPinboard<T> where
T: Octal,
[src]
T: Octal,
impl<T: Clone + 'static> Pointer for NonEmptyPinboard<T> where
T: Pointer,
[src]
T: Pointer,
impl<T: Clone + 'static> UpperExp for NonEmptyPinboard<T> where
T: UpperExp,
[src]
T: UpperExp,
impl<T: Clone + 'static> UpperHex for NonEmptyPinboard<T> where
T: UpperHex,
[src]
T: UpperHex,
Auto Trait Implementations
impl<T> RefUnwindSafe for NonEmptyPinboard<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for NonEmptyPinboard<T> where
T: Pointable + Send + Sync,
T: Pointable + Send + Sync,
impl<T> Sync for NonEmptyPinboard<T> where
T: Pointable + Send + Sync,
T: Pointable + Send + Sync,
impl<T> Unpin for NonEmptyPinboard<T>
impl<T> UnwindSafe for NonEmptyPinboard<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,