[][src]Struct goro::Vector

pub struct Vector<T: TokenList, S = DefaultAnalyst> { /* fields omitted */ }

Methods

impl<T: TokenList> Vector<T, DefaultAnalyst>[src]

pub fn new(
    allocation_size: usize,
    window_size: usize,
    user_data: T::UserData
) -> Result<Self, T::Error>
[src]

impl<T: TokenList, S: Analyst> Vector<T, S>[src]

pub fn new_with_analyst(
    analyst: S,
    user_data: T::UserData
) -> Result<Self, T::Error>
[src]

pub fn get_token(&mut self) -> Result<(&mut T, usize), T::Error>[src]

pub fn get_vector(&mut self) -> Vec<&mut T>[src]

pub fn tick(&mut self) -> Result<(), T::Error>[src]

Trait Implementations

impl<T: Debug + TokenList, S: Debug> Debug for Vector<T, S> where
    T::UserData: Debug
[src]

Auto Trait Implementations

impl<T, S> RefUnwindSafe for Vector<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as TokenList>::UserData: RefUnwindSafe

impl<T, S> Send for Vector<T, S> where
    S: Send,
    T: Send,
    <T as TokenList>::UserData: Send

impl<T, S> Sync for Vector<T, S> where
    S: Sync,
    T: Sync,
    <T as TokenList>::UserData: Sync

impl<T, S> Unpin for Vector<T, S> where
    S: Unpin,
    T: Unpin,
    <T as TokenList>::UserData: Unpin

impl<T, S> UnwindSafe for Vector<T, S> where
    S: UnwindSafe,
    T: UnwindSafe,
    <T as TokenList>::UserData: 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.