pub struct MaxContiguous<T> {
pub max: (usize, T),
pub left: (usize, T),
pub right: (usize, T),
pub length: usize,
}
Expand description
同じ値が連続する最大長を管理する。
Fields§
§max: (usize, T)
最大連続長と値
left: (usize, T)
左端からの最大連続長と値
right: (usize, T)
右端からの最大連続長と値
length: usize
列の長さ
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for MaxContiguous<T>
impl<T: Clone> Clone for MaxContiguous<T>
Source§fn clone(&self) -> MaxContiguous<T>
fn clone(&self) -> MaxContiguous<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for MaxContiguous<T>
impl<T: Debug> Debug for MaxContiguous<T>
Source§impl<T: PartialEq> PartialEq for MaxContiguous<T>
impl<T: PartialEq> PartialEq for MaxContiguous<T>
impl<T: Copy + Eq> Associative for MaxContiguous<T>
impl<T: Eq> Eq for MaxContiguous<T>
impl<T: Copy + Eq> Set for MaxContiguous<T>
impl<T> StructuralPartialEq for MaxContiguous<T>
Auto Trait Implementations§
impl<T> Freeze for MaxContiguous<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaxContiguous<T>where
T: RefUnwindSafe,
impl<T> Send for MaxContiguous<T>where
T: Send,
impl<T> Sync for MaxContiguous<T>where
T: Sync,
impl<T> Unpin for MaxContiguous<T>where
T: Unpin,
impl<T> UnwindSafe for MaxContiguous<T>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