pub struct ListStorage<T> { /* private fields */ }
Expand description
Trait Implementations§
Source§impl<T> Clone for ListStorage<T>where
T: Clone,
impl<T> Clone for ListStorage<T>where
T: Clone,
Source§fn clone(&self) -> ListStorage<T>
fn clone(&self) -> ListStorage<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for ListStorage<T>where
T: Debug,
impl<T> Debug for ListStorage<T>where
T: Debug,
Source§impl<T> Default for ListStorage<T>where
T: Default,
impl<T> Default for ListStorage<T>where
T: Default,
Source§fn default() -> ListStorage<T>
fn default() -> ListStorage<T>
Returns the “default value” for a type. Read more
Source§impl<V> EntryEngine<V> for ListStorage<V>where
V: Clone,
impl<V> EntryEngine<V> for ListStorage<V>where
V: Clone,
type EntryRef<'i> = &'i V where V: 'i
type EntryMut<'i> = &'i mut V where V: 'i
Source§fn get_entry<'i, Q>(&'i self, query: Q) -> V
fn get_entry<'i, Q>(&'i self, query: Q) -> V
Get the reference of data by given query from the storage. Read more
Source§fn try_entry<'i, Q>(
&'i self,
query: Q,
) -> Result<<ListStorage<V> as EntryEngine<V>>::EntryRef<'i>, GraphError>
fn try_entry<'i, Q>( &'i self, query: Q, ) -> Result<<ListStorage<V> as EntryEngine<V>>::EntryRef<'i>, GraphError>
Get the reference of data by given query from the storage. Read more
Source§fn mut_entry<'i, Q>(
&'i mut self,
query: Q,
) -> Result<<ListStorage<V> as EntryEngine<V>>::EntryMut<'i>, GraphError>
fn mut_entry<'i, Q>( &'i mut self, query: Q, ) -> Result<<ListStorage<V> as EntryEngine<V>>::EntryMut<'i>, GraphError>
Get the reference of data by given query from the storage. Read more
Source§fn set_entry<'i, Q>(&'i mut self, query: Q, entry: V) -> Result<(), GraphError>
fn set_entry<'i, Q>(&'i mut self, query: Q, entry: V) -> Result<(), GraphError>
Get the reference of data by given query from the storage. Read more
fn get_node_data<'i>(&'i self, node: usize) -> V
fn try_node_data<'i>(&'i self, node: usize) -> Option<Self::EntryRef<'i>>
fn mut_node_data<'i>(&'i mut self, node: usize) -> Option<Self::EntryMut<'i>>
fn set_node_data<'i>(&'i mut self, node: usize, data: V)
fn get_edge_data<'i>(&'i self, edge: usize) -> V
fn try_edge_data<'i>(&'i self, edge: usize) -> Option<Self::EntryRef<'i>>
fn mut_edge_data<'i>(&'i mut self, edge: usize) -> Option<Self::EntryMut<'i>>
fn set_edge_data<'i>(&'i mut self, edge: usize, data: V)
Auto Trait Implementations§
impl<T> Freeze for ListStorage<T>
impl<T> RefUnwindSafe for ListStorage<T>where
T: RefUnwindSafe,
impl<T> Send for ListStorage<T>where
T: Send,
impl<T> Sync for ListStorage<T>where
T: Sync,
impl<T> Unpin for ListStorage<T>where
T: Unpin,
impl<T> UnwindSafe for ListStorage<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more