pub struct Constructor {
pub pattern: Pattern,
pub display: Display,
pub execution: Option<Execution>,
pub location: Span,
/* private fields */
}Fields§
§pattern: Pattern§display: Display§execution: Option<Execution>§location: SpanImplementations§
Source§impl Constructor
impl Constructor
pub fn variants<'a>( &'a self, ) -> impl Iterator<Item = (VariantId, &'a [BitConstraint], &'a [BitConstraint])> + 'a
pub fn variant(&self, id: VariantId) -> (&[BitConstraint], &[BitConstraint])
Trait Implementations§
Source§impl Clone for Constructor
impl Clone for Constructor
Source§fn clone(&self) -> Constructor
fn clone(&self) -> Constructor
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 Constructor
impl RefUnwindSafe for Constructor
impl !Send for Constructor
impl !Sync for Constructor
impl Unpin for Constructor
impl UnwindSafe for Constructor
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