pub enum SGen<A> {
Sized(Rc<RefCell<dyn Fn(u32) -> Gen<A>>>),
Unsized(Gen<A>),
}
Expand description
Generator with size information.
サイズ情報を持つジェネレータ。
Variants§
Sized(Rc<RefCell<dyn Fn(u32) -> Gen<A>>>)
Generator with size information.
サイズ情報を持つジェネレータ。
Unsized(Gen<A>)
Generator without size information.
サイズ情報を持たないジェネレータ。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for SGen<A>
impl<A> !RefUnwindSafe for SGen<A>
impl<A> !Send for SGen<A>
impl<A> !Sync for SGen<A>
impl<A> Unpin for SGen<A>
impl<A> !UnwindSafe for SGen<A>
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