[][src]Struct rql::TableGuard

pub struct TableGuard<'a, T>(_);

An immutable guard to a Table

Methods from Deref<Target = Table<T>>

pub fn len(&self) -> usize[src]

Get the number of rows in the Table

pub fn is_empty(&self) -> bool[src]

Check if the Table` is empty

pub fn get(&self, id: Id<T>) -> Option<&T>[src]

Try to get a reference to the row with the given Id

pub fn rows(&self) -> RowIter<T>[src]

Iterate over all rows in the Table

pub fn save<P>(&self, path: P, repr: Representation) -> Result<()> where
    P: AsRef<Path>, 
[src]

Save the database to a file

pub fn save_to_bytes(&self, repr: Representation) -> Result<Vec<u8>>[src]

Save the database to a byte vector

Trait Implementations

impl<'a, T: Debug> Debug for TableGuard<'a, T>[src]

impl<'a, T> Deref for TableGuard<'a, T>[src]

type Target = Table<T>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for TableGuard<'a, T>

impl<'a, T> !Send for TableGuard<'a, T>

impl<'a, T> Sync for TableGuard<'a, T> where
    T: Sync

impl<'a, T> Unpin for TableGuard<'a, T>

impl<'a, T> UnwindSafe for TableGuard<'a, T>

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, 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>,