Struct ethers_solc::artifacts::ast::Literal
source · pub struct Literal {
pub id: usize,
pub src: SourceLocation,
pub argument_types: Vec<TypeDescriptions>,
pub is_constant: bool,
pub is_l_value: bool,
pub is_pure: bool,
pub l_value_requested: bool,
pub type_descriptions: TypeDescriptions,
pub hex_value: String,
pub kind: LiteralKind,
pub subdenomination: Option<String>,
pub value: Option<String>,
}
Expand description
A literal value.
Fields§
§id: usize
§src: SourceLocation
§argument_types: Vec<TypeDescriptions>
§is_constant: bool
§is_l_value: bool
§is_pure: bool
§l_value_requested: bool
§type_descriptions: TypeDescriptions
§hex_value: String
§kind: LiteralKind
§subdenomination: Option<String>
§value: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
impl<'de> Deserialize<'de> for Literal
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 Literal
impl PartialEq for Literal
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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.