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

Returns a copy of the value stored in the atom.

Changes the value stored in th atom.

Trait Implementations

Performs the conversion.

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.