pub struct SegmentTreeCtx<M: MonoidCtx> {
pub N: usize,
/* private fields */
}Expand description
セグメント木
Fields§
§N: usize要素数
Implementations§
Source§impl<M: MonoidCtx> SegmentTreeCtx<M>
impl<M: MonoidCtx> SegmentTreeCtx<M>
Trait Implementations§
Source§impl<M> Debug for SegmentTreeCtx<M>
impl<M> Debug for SegmentTreeCtx<M>
Source§impl<M> ShowBinaryTree<usize> for SegmentTreeCtx<M>
impl<M> ShowBinaryTree<usize> for SegmentTreeCtx<M>
Source§fn print_node(&self, i: &usize) -> String
fn print_node(&self, i: &usize) -> String
<required> ノードの値を表示する
Source§fn print_as_binary_tree(&self)
fn print_as_binary_tree(&self)
2分木としてフォーマットする
Auto Trait Implementations§
impl<M> Freeze for SegmentTreeCtx<M>where
M: Freeze,
impl<M> RefUnwindSafe for SegmentTreeCtx<M>
impl<M> Send for SegmentTreeCtx<M>
impl<M> Sync for SegmentTreeCtx<M>
impl<M> Unpin for SegmentTreeCtx<M>
impl<M> UnwindSafe for SegmentTreeCtx<M>
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> 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