[−][src]Struct exonum_merkledb::IndexAddress
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(&self) -> 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]
fn default() -> 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]
fn eq(&self, other: &IndexAddress) -> bool
[src]
fn ne(&self, other: &IndexAddress) -> bool
[src]
impl Eq for IndexAddress
[src]
impl Debug for IndexAddress
[src]
impl Hash for IndexAddress
[src]
Auto Trait Implementations
impl Sync for IndexAddress
impl Send for IndexAddress
impl Unpin for IndexAddress
impl RefUnwindSafe for IndexAddress
impl UnwindSafe for IndexAddress
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,