Enum AstStorageDuration
pub enum AstStorageDuration {
None,
Automatic,
Static,
}Expand description
The storage duration of an identifier determines its lifetime.
Variants§
Trait Implementations§
§impl Clone for AstStorageDuration
impl Clone for AstStorageDuration
§fn clone(&self) -> AstStorageDuration
fn clone(&self) -> AstStorageDuration
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 more§impl Debug for AstStorageDuration
impl Debug for AstStorageDuration
§impl PartialEq for AstStorageDuration
impl PartialEq for AstStorageDuration
impl Copy for AstStorageDuration
impl Eq for AstStorageDuration
impl StructuralPartialEq for AstStorageDuration
Auto Trait Implementations§
impl Freeze for AstStorageDuration
impl RefUnwindSafe for AstStorageDuration
impl Send for AstStorageDuration
impl Sync for AstStorageDuration
impl Unpin for AstStorageDuration
impl UnwindSafe for AstStorageDuration
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