pub struct Segment<S: State = Parsed> {
pub items: Vec<Item<S>>,
pub weight: usize,
}Fields§
§items: Vec<Item<S>>What is generated, one after the other.
weight: usizeHow likely this segment is to be chosen, relative to the other segments of the group.
Set with a multiplier at the start of the segment, as in ({3}a|b).
Trait Implementations§
impl<S: PartialEq + State> StructuralPartialEq for Segment<S>
Auto Trait Implementations§
impl<S> Forget for Segment<S>
impl<S> Freeze for Segment<S>
impl<S> Move for Segment<S>
impl<S> RefUnwindSafe for Segment<S>
impl<S> Send for Segment<S>
impl<S> Sync for Segment<S>
impl<S> Unpin for Segment<S>
impl<S> UnsafeUnpin for Segment<S>
impl<S> UnwindSafe for Segment<S>
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