pub enum ComposeBody {
Sequence {
left: String,
right: String,
shared: Vec<String>,
},
Choice {
alternatives: Vec<String>,
exclusive: bool,
},
Repeat {
pattern: String,
min: usize,
max: Option<usize>,
shared: Vec<String>,
},
}Expand description
The body of a compose directive.
Variants§
Sequence
A >> B sharing(x, y)
Choice
A | B | C (exclusive choice by default, nonexclusive keyword opts out)
Repeat
A * 3 sharing(x, y) (exact) or A * 3..5 sharing(x, y) (range)
Trait Implementations§
Source§impl Clone for ComposeBody
impl Clone for ComposeBody
Source§fn clone(&self) -> ComposeBody
fn clone(&self) -> ComposeBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComposeBody
impl RefUnwindSafe for ComposeBody
impl Send for ComposeBody
impl Sync for ComposeBody
impl Unpin for ComposeBody
impl UnsafeUnpin for ComposeBody
impl UnwindSafe for ComposeBody
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