[][src]Struct exonum_merkledb::IndexAddress

pub struct IndexAddress { /* fields omitted */ }

Represents address of the index in the database.

Examples

use exonum_merkledb::{TemporaryDB, Database, IndexAddress, ListIndex, RefMut};

let db = TemporaryDB::new();
let fork = db.fork();
let address = ("index", &3);
let index: RefMut<ListIndex<_, u32>> = fork.get_object(address);

Methods

impl IndexAddress[src]

pub fn new() -> Self[src]

Creates empty IndexAddress.

pub fn with_root<S: Into<String>>(root: S) -> Self[src]

Creates new IndexAddress with specified root name.

pub fn name(&self) -> &str[src]

Returns name part of IndexAddress.

pub fn bytes(&self) -> Option<&[u8]>[src]

Returns bytes part of IndexAddress.

pub fn append_name<'a, S: Into<Cow<'a, str>>>(self, suffix: S) -> Self[src]

Appends a name part to IndexAddress.

pub fn append_bytes<K: BinaryKey + ?Sized>(self, suffix: &K) -> Self[src]

Appends a bytes part to IndexAddress.

pub fn fully_qualified_name(&self) -> Vec<u8>[src]

Full address with a separator between name and bytes represented as byte array.

Trait Implementations

impl Clone for IndexAddress[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for IndexAddress[src]

impl<'a> From<&'a str> for IndexAddress[src]

impl From<String> for IndexAddress[src]

impl<'a, K: BinaryKey + ?Sized> From<(&'a str, &'a K)> for IndexAddress[src]

impl PartialEq<IndexAddress> for IndexAddress[src]

impl Eq for IndexAddress[src]

impl Debug for IndexAddress[src]

impl Hash for IndexAddress[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default