Enum const_gen::DeclarationType
source · pub enum DeclarationType {
Const,
Static,
}
Expand description
Enum representing the type of declaration to generate, e.g. const
or static
.
Variants§
Trait Implementations§
source§impl Clone for DeclarationType
impl Clone for DeclarationType
source§fn clone(&self) -> DeclarationType
fn clone(&self) -> DeclarationType
Returns a copy 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 moresource§impl Debug for DeclarationType
impl Debug for DeclarationType
source§impl Display for DeclarationType
impl Display for DeclarationType
source§impl PartialEq for DeclarationType
impl PartialEq for DeclarationType
source§fn eq(&self, other: &DeclarationType) -> bool
fn eq(&self, other: &DeclarationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeclarationType
impl Eq for DeclarationType
impl StructuralEq for DeclarationType
impl StructuralPartialEq for DeclarationType
Auto Trait Implementations§
impl RefUnwindSafe for DeclarationType
impl Send for DeclarationType
impl Sync for DeclarationType
impl Unpin for DeclarationType
impl UnwindSafe for DeclarationType
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