[][src]Struct dimension_shiftable_buffer::DimensionShiftableBuffer

pub struct DimensionShiftableBuffer<T: PartialOrd + Clone> { /* fields omitted */ }

Implementations

impl<T: PartialOrd + Clone> DimensionShiftableBuffer<T>[src]

pub fn new(
    entity: Vec<T>,
    dimension: usize
) -> Result<DimensionShiftableBuffer<T>, DimensionShiftableBufferError>
[src]

pub fn shift_dimension(
    &mut self,
    new_dimension: usize
) -> Result<(), DimensionShiftableBufferError>
[src]

pub fn shift_dimension_truncate(
    &mut self,
    new_dimension: usize
) -> Result<(), DimensionShiftableBufferError>
[src]

pub fn shift_dimension_padding(
    &mut self,
    new_dimension: usize,
    padding_value: T
) -> Result<(), DimensionShiftableBufferError>
[src]

pub fn for_each<F: FnMut(&mut T)>(&mut self, f: F) -> &Self[src]

pub fn move_entity(self) -> Vec<T>[src]

WARNING, It's MOVE and drop self.

pub fn as_slice(&self) -> &[T][src]

pub fn clear(&mut self)[src]

pub fn len(&self) -> Result<usize, DimensionShiftableBufferError>[src]

pub fn get(&self, index: usize) -> Result<&[T], DimensionShiftableBufferError>[src]

pub fn get_mut(
    &mut self,
    index: usize
) -> Result<&mut [T], DimensionShiftableBufferError>
[src]

pub fn remove(
    &mut self,
    index: usize
) -> Result<Vec<T>, DimensionShiftableBufferError>
[src]

pub fn pop(&mut self) -> Result<Vec<T>, DimensionShiftableBufferError>[src]

pub fn push(&mut self, v: &[T]) -> Result<(), DimensionShiftableBufferError>[src]

pub fn append(&mut self, vs: &[T]) -> Result<(), DimensionShiftableBufferError>[src]

Trait Implementations

impl<T: Display + FromStr + PartialOrd + Clone> Csv<T> for DimensionShiftableBuffer<T>[src]

impl<T: Debug + PartialOrd + Clone> Debug for DimensionShiftableBuffer<T>[src]

impl<T: Default + PartialOrd + Clone> Default for DimensionShiftableBuffer<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for DimensionShiftableBuffer<T> where
    T: RefUnwindSafe

impl<T> Send for DimensionShiftableBuffer<T> where
    T: Send

impl<T> Sync for DimensionShiftableBuffer<T> where
    T: Sync

impl<T> Unpin for DimensionShiftableBuffer<T> where
    T: Unpin

impl<T> UnwindSafe for DimensionShiftableBuffer<T> where
    T: 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, 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.