#[non_exhaustive]pub enum SemanticAccessMode {
Read,
Write,
ReadWrite,
}Expand description
Logical access mode derived from an operation contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read
Read without semantic mutation.
Write
Write without reading the prior value.
ReadWrite
Read and semantically mutate the same value.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticAccessMode
impl Clone for SemanticAccessMode
impl Copy for SemanticAccessMode
Source§impl Debug for SemanticAccessMode
impl Debug for SemanticAccessMode
impl Eq for SemanticAccessMode
Source§impl PartialEq for SemanticAccessMode
impl PartialEq for SemanticAccessMode
impl StructuralPartialEq for SemanticAccessMode
Auto Trait Implementations§
impl Forget for SemanticAccessMode
impl Freeze for SemanticAccessMode
impl Move for SemanticAccessMode
impl RefUnwindSafe for SemanticAccessMode
impl Send for SemanticAccessMode
impl Sync for SemanticAccessMode
impl Unpin for SemanticAccessMode
impl UnsafeUnpin for SemanticAccessMode
impl UnwindSafe for SemanticAccessMode
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