struct ArrayWindowsInner<T: Clone, const N: usize> {
window: [T; N],
window_start: usize,
}Fields§
§window: [T; N]§window_start: usizeImplementations§
Source§impl<T: Clone, const N: usize> ArrayWindowsInner<T, N>
impl<T: Clone, const N: usize> ArrayWindowsInner<T, N>
Sourcefn add_to_buffer(&mut self, item: T)
fn add_to_buffer(&mut self, item: T)
Replace the least recent item in window with a new
item.
Sourcefn make_window(&self) -> [T; N]
fn make_window(&self) -> [T; N]
Construct an array window to return.
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArrayWindowsInner<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArrayWindowsInner<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayWindowsInner<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayWindowsInner<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayWindowsInner<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for ArrayWindowsInner<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for ArrayWindowsInner<T, N>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more