[][src]Struct solana_ledger::blockstore_db::LedgerColumn

pub struct LedgerColumn<C> where
    C: Column
{ /* fields omitted */ }

Implementations

impl<C> LedgerColumn<C> where
    C: Column + ColumnName
[src]

pub fn get_bytes(&self, key: C::Index) -> Result<Option<Vec<u8>>>[src]

pub fn iter<'a>(
    &'a self,
    iterator_mode: IteratorMode<C::Index>
) -> Result<impl Iterator<Item = (C::Index, Box<[u8]>)> + 'a>
[src]

pub fn delete_slot(
    &self,
    batch: &mut WriteBatch,
    from: Option<Slot>,
    to: Option<Slot>
) -> Result<bool> where
    C::Index: PartialOrd + Copy + ColumnName
[src]

pub fn compact_range(&self, from: Slot, to: Slot) -> Result<bool> where
    C::Index: PartialOrd + Copy
[src]

pub fn handle(&self) -> &ColumnFamily[src]

pub fn put_bytes(&self, key: C::Index, value: &[u8]) -> Result<()>[src]

impl<C> LedgerColumn<C> where
    C: TypedColumn + ColumnName
[src]

pub fn get(&self, key: C::Index) -> Result<Option<C::Type>>[src]

pub fn put(&self, key: C::Index, value: &C::Type) -> Result<()>[src]

Trait Implementations

impl<C: Clone> Clone for LedgerColumn<C> where
    C: Column
[src]

impl<C: Debug> Debug for LedgerColumn<C> where
    C: Column
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for LedgerColumn<C> where
    C: RefUnwindSafe

impl<C> Send for LedgerColumn<C> where
    C: Send

impl<C> Sync for LedgerColumn<C> where
    C: Sync

impl<C> Unpin for LedgerColumn<C> where
    C: Unpin

impl<C> UnwindSafe for LedgerColumn<C> where
    C: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,