[−][src]Struct ontio_std::database::ListStore
Implementations
impl<T> ListStore<T> where
T: Decoder<'a> + Encoder, [src]
T: Decoder<'a> + Encoder,
pub fn open(key: &[u8]) -> ListStore<T>[src]
pub fn len(&self) -> u32[src]
pub fn is_empty(&self) -> bool[src]
pub fn pop(&mut self) -> Option<T>[src]
pub fn remove(&mut self, index: u32) -> T[src]
pub fn push(&mut self, payload: T)[src]
pub fn insert(&mut self, index: u32, payload: T)[src]
pub fn clear(&mut self)[src]
pub fn iter(&mut self) -> Iterator<'_, T>[src]
pub fn get(&mut self, index: u32) -> Option<&T>[src]
impl<T: Encoder> ListStore<T>[src]
Trait Implementations
Auto Trait Implementations
impl<T> Send for ListStore<T> where
T: Send,
T: Send,
impl<T> Sync for ListStore<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ListStore<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &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>,