StoreVertex

Trait StoreVertex 

Source
pub trait StoreVertex: Index<VHandle, Output = Self::VertexType> + IndexMut<VHandle, Output = Self::VertexType> {
    type VertexType;

    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn push(&mut self, val: Self::VertexType);
    fn capacity(&self) -> usize;
    fn iter(&self) -> Iter<'_, Self::VertexType>;
    fn iter_mut(&mut self) -> IterMut<'_, Self::VertexType>;
    fn as_slice(&self) -> &[Self::VertexType];
}

Required Associated Types§

Required Methods§

Source

fn is_empty(&self) -> bool

Source

fn len(&self) -> usize

Source

fn push(&mut self, val: Self::VertexType)

Source

fn capacity(&self) -> usize

Source

fn iter(&self) -> Iter<'_, Self::VertexType>

Source

fn iter_mut(&mut self) -> IterMut<'_, Self::VertexType>

Source

fn as_slice(&self) -> &[Self::VertexType]

Implementors§

Source§

impl<VertexType> StoreVertex for VertexStorage<VertexType>

Source§

type VertexType = VertexType