pub struct ParsePatternRules {
pub await_allowed: bool,
pub yield_allowed: bool,
}
Fields§
§await_allowed: bool
§yield_allowed: bool
Implementations§
Source§impl ParsePatternRules
impl ParsePatternRules
pub fn with_await_allowed(&self, await_allowed: bool) -> ParsePatternRules
pub fn with_yield_allowed(&self, yield_allowed: bool) -> ParsePatternRules
Trait Implementations§
Source§impl Clone for ParsePatternRules
impl Clone for ParsePatternRules
Source§fn clone(&self) -> ParsePatternRules
fn clone(&self) -> ParsePatternRules
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 moreimpl Copy for ParsePatternRules
Auto Trait Implementations§
impl Freeze for ParsePatternRules
impl RefUnwindSafe for ParsePatternRules
impl Send for ParsePatternRules
impl Sync for ParsePatternRules
impl Unpin for ParsePatternRules
impl UnwindSafe for ParsePatternRules
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