pub struct Repeater<T> {
pub child: Box<dyn Node<T>>,
pub max_repeats: Option<u32>,
pub stop_on_fail: bool,
/* private fields */
}Expand description
Repeats child N times, or infinitely if N is None.
Fields§
§child: Box<dyn Node<T>>§max_repeats: Option<u32>§stop_on_fail: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Repeater<T>
impl<T> !RefUnwindSafe for Repeater<T>
impl<T> Send for Repeater<T>
impl<T> Sync for Repeater<T>
impl<T> Unpin for Repeater<T>
impl<T> UnsafeUnpin for Repeater<T>
impl<T> !UnwindSafe for Repeater<T>
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