pub struct Loop<T, V, F, G>{
pub next: F,
pub get_val: G,
pub begin: T,
pub loop_len: usize,
pub loop_begin: T,
pub loop_begin_idx: usize,
pub before_loop_sum: V,
pub loop_sum: V,
/* private fields */
}Fields§
§next: Fノードの移動を行う関数
get_val: Gノードから値を取り出す関数
begin: T始点となるノード
loop_len: usizeループの長さ
loop_begin: Tループ開始時の値
loop_begin_idx: usizeループに到達するまでの移動回数
before_loop_sum: Vループ開始時までの累積
loop_sum: Vループ内での累積
Implementations§
Source§impl<T, V, F, G> Loop<T, V, F, G>
impl<T, V, F, G> Loop<T, V, F, G>
Sourcepub fn get_nth_node_usize(&self, n: usize) -> T
pub fn get_nth_node_usize(&self, n: usize) -> T
self.beginからn個後の頂点を取り出す
Sourcepub fn get_nth_val_usize(&self, n: usize) -> V
pub fn get_nth_val_usize(&self, n: usize) -> V
self.beginからn個後の値を取り出す
Sourcepub fn get_nth_node_biguint(&self, n: BigUint) -> T
pub fn get_nth_node_biguint(&self, n: BigUint) -> T
self.beginからn個後の値を取り出す
Auto Trait Implementations§
impl<T, V, F, G> Freeze for Loop<T, V, F, G>
impl<T, V, F, G> RefUnwindSafe for Loop<T, V, F, G>
impl<T, V, F, G> Send for Loop<T, V, F, G>
impl<T, V, F, G> Sync for Loop<T, V, F, G>
impl<T, V, F, G> Unpin for Loop<T, V, F, G>
impl<T, V, F, G> UnwindSafe for Loop<T, V, F, G>
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