Struct leo_ast::statement::console::console_statement::ConsoleStatement
source · pub struct ConsoleStatement {
pub function: ConsoleFunction,
pub span: Span,
pub id: NodeID,
}Expand description
A console logging statement like console.log(...);.
Fields§
§function: ConsoleFunctionThe logging function to run.
span: SpanThe span excluding the semicolon.
id: NodeIDThe ID of the node.
Trait Implementations§
source§impl Clone for ConsoleStatement
impl Clone for ConsoleStatement
source§fn clone(&self) -> ConsoleStatement
fn clone(&self) -> ConsoleStatement
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 ConsoleStatement
impl Debug for ConsoleStatement
source§impl<'de> Deserialize<'de> for ConsoleStatement
impl<'de> Deserialize<'de> for ConsoleStatement
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 Display for ConsoleStatement
impl Display for ConsoleStatement
source§impl Node for ConsoleStatement
impl Node for ConsoleStatement
source§impl PartialEq for ConsoleStatement
impl PartialEq for ConsoleStatement
source§fn eq(&self, other: &ConsoleStatement) -> bool
fn eq(&self, other: &ConsoleStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ConsoleStatement
impl Serialize for ConsoleStatement
impl Eq for ConsoleStatement
impl StructuralEq for ConsoleStatement
impl StructuralPartialEq for ConsoleStatement
Auto Trait Implementations§
impl RefUnwindSafe for ConsoleStatement
impl Send for ConsoleStatement
impl Sync for ConsoleStatement
impl Unpin for ConsoleStatement
impl UnwindSafe for ConsoleStatement
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.