pub struct Allow {
pub methods: Vec<MethodName>,
pub condition: Option<Expr>,
pub span: Span,
}Expand description
allow read, write: if condition;.
Fields§
§methods: Vec<MethodName>§condition: Option<Expr>None for allow read;, which always allows.
span: SpanThe allow keyword.
Trait Implementations§
impl StructuralPartialEq for Allow
Auto Trait Implementations§
impl Forget for Allow
impl Freeze for Allow
impl RefUnwindSafe for Allow
impl Send for Allow
impl Sync for Allow
impl Unpin for Allow
impl UnsafeUnpin for Allow
impl UnwindSafe for Allow
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