pub struct StorageVariable {
pub name: String,
pub ty: StorageType,
}Expand description
A storage variable declaration.
§Lowering
Storage variables are lowered to mappings in Aleo bytecode:
storage x: Tbecomesmapping x__: bool => T(value stored at keyfalse)
Fields§
§name: String§ty: StorageTypeTrait Implementations§
Source§impl Clone for StorageVariable
impl Clone for StorageVariable
Source§fn clone(&self) -> StorageVariable
fn clone(&self) -> StorageVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageVariable
impl Debug for StorageVariable
Source§impl<'de> Deserialize<'de> for StorageVariable
impl<'de> Deserialize<'de> for StorageVariable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StorageVariable
impl PartialEq for StorageVariable
Source§fn eq(&self, other: &StorageVariable) -> bool
fn eq(&self, other: &StorageVariable) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageVariable
impl Serialize for StorageVariable
impl Eq for StorageVariable
impl StructuralPartialEq for StorageVariable
Auto Trait Implementations§
impl Freeze for StorageVariable
impl RefUnwindSafe for StorageVariable
impl Send for StorageVariable
impl Sync for StorageVariable
impl Unpin for StorageVariable
impl UnsafeUnpin for StorageVariable
impl UnwindSafe for StorageVariable
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