Enum syn_solidity::Storage
source · pub enum Storage {
Memory(memory),
Storage(storage),
Calldata(calldata),
}
Expand description
A storage location.
Variants§
Implementations§
source§impl Storage
impl Storage
pub fn parse_opt(input: ParseStream<'_>) -> Result<Option<Self>>
pub fn peek(lookahead: &Lookahead1<'_>) -> bool
pub const fn span(self) -> Span
pub fn set_span(&mut self, span: Span)
pub const fn as_str(self) -> &'static str
pub const fn as_debug_str(self) -> &'static str
Trait Implementations§
source§impl PartialEq<Storage> for Storage
impl PartialEq<Storage> for Storage
impl Copy for Storage
impl Eq for Storage
Auto Trait Implementations§
impl RefUnwindSafe for Storage
impl !Send for Storage
impl !Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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