Struct kdb::Atom [−][src]
#[repr(transparent)]pub struct Atom<T> { /* fields omitted */ }
Expand description
Atoms are the base primitive values in rust-kdb. You can create a new atom by calling
KBox::new_atom
, or using the From
/Into
traits on a value.
Examples
use kdb::{KBox, Atom}; let a = KBox::new_atom(42u8); // Creates a KBox<Atom<u8>> let b: KBox<Atom<u8>> = 27u8.into(); println!("{} dudes!", a.value() + b.value());
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Atom<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Atom<T> where
T: UnwindSafe,