Enum ethers_solc::artifacts::ast::LiteralKind
source · pub enum LiteralKind {
Bool,
Number,
String,
HexString,
UnicodeString,
}
Expand description
Literal kinds.
Variants§
Bool
A boolean.
Number
A number.
String
A string.
HexString
A hexadecimal string.
UnicodeString
A unicode string.
Trait Implementations§
source§impl Clone for LiteralKind
impl Clone for LiteralKind
source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
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 LiteralKind
impl Debug for LiteralKind
source§impl<'de> Deserialize<'de> for LiteralKind
impl<'de> Deserialize<'de> for LiteralKind
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 LiteralKind
impl PartialEq for LiteralKind
source§fn eq(&self, other: &LiteralKind) -> bool
fn eq(&self, other: &LiteralKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LiteralKind
impl Serialize for LiteralKind
impl Eq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnwindSafe for LiteralKind
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.