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§
Source§impl Cloner
impl Cloner
pub fn enable(en: &Enable) -> Enable
pub fn fsm_enable(fen: &FSMEnable) -> FSMEnable
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 Freeze for Cloner
impl RefUnwindSafe for Cloner
impl Send for Cloner
impl Sync for Cloner
impl Unpin for Cloner
impl UnwindSafe for Cloner
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