[−][src]Struct goro::Vector
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]
allocation_size: usize,
window_size: usize,
user_data: T::UserData
) -> Result<Self, T::Error>
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]
analyst: S,
user_data: T::UserData
) -> Result<Self, T::Error>
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
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Vector<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
<T as TokenList>::UserData: RefUnwindSafe,
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,
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,
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,
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,
S: UnwindSafe,
T: UnwindSafe,
<T as TokenList>::UserData: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,