Struct lualite::ast::StaticDecl
source · [−]pub struct StaticDecl {
pub name: Identifier,
pub value: Option<Expression>,
}
Expand description
Static variable/constant declaration
Fields
name: Identifier
value: Option<Expression>
Trait Implementations
sourceimpl Clone for StaticDecl
impl Clone for StaticDecl
sourcefn clone(&self) -> StaticDecl
fn clone(&self) -> StaticDecl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StaticDecl
impl Debug for StaticDecl
sourceimpl PartialEq<StaticDecl> for StaticDecl
impl PartialEq<StaticDecl> for StaticDecl
sourcefn eq(&self, other: &StaticDecl) -> bool
fn eq(&self, other: &StaticDecl) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StaticDecl) -> bool
fn ne(&self, other: &StaticDecl) -> bool
This method tests for !=
.
impl StructuralPartialEq for StaticDecl
Auto Trait Implementations
impl RefUnwindSafe for StaticDecl
impl Send for StaticDecl
impl Sync for StaticDecl
impl Unpin for StaticDecl
impl UnwindSafe for StaticDecl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more