pub struct Cloner;
Expand description
Implement cloning operations on control statements. We implement these separatily from the Clone trait because cloning trait is not very common and clones should be explicit.
Implementations
sourceimpl Cloner
impl Cloner
pub fn enable(en: &Enable) -> Enable
pub fn static_enable(en: &StaticEnable) -> StaticEnable
pub fn invoke(inv: &Invoke) -> Invoke
pub fn empty(en: &Empty) -> Empty
pub fn while_(wh: &While) -> While
pub fn static_repeat(rep: &StaticRepeat) -> StaticRepeat
pub fn repeat(rep: &Repeat) -> Repeat
pub fn if_(if_: &If) -> If
pub fn static_if(sif: &StaticIf) -> StaticIf
pub fn par(par: &Par) -> Par
pub fn static_par(par: &StaticPar) -> StaticPar
pub fn seq(seq: &Seq) -> Seq
pub fn static_seq(seq: &StaticSeq) -> StaticSeq
pub fn static_invoke(i: &StaticInvoke) -> StaticInvoke
pub fn static_control(s: &StaticControl) -> StaticControl
pub fn control(con: &Control) -> Control
Auto Trait Implementations
impl RefUnwindSafe for Cloner
impl Send for Cloner
impl Sync for Cloner
impl Unpin for Cloner
impl UnwindSafe for Cloner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more