pub struct SourceUnit {
pub id: u64,
pub src: String,
pub nodes: Vec<AstNode>,
}Expand description
Source unit (whole contract file)
Fields§
§id: u64Node ID
src: StringSource location
nodes: Vec<AstNode>All nodes in this source unit
Trait Implementations§
Source§impl Clone for SourceUnit
impl Clone for SourceUnit
Source§fn clone(&self) -> SourceUnit
fn clone(&self) -> SourceUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceUnit
impl Debug for SourceUnit
Source§impl<'de> Deserialize<'de> for SourceUnit
impl<'de> Deserialize<'de> for SourceUnit
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
Auto Trait Implementations§
impl Freeze for SourceUnit
impl RefUnwindSafe for SourceUnit
impl Send for SourceUnit
impl Sync for SourceUnit
impl Unpin for SourceUnit
impl UnsafeUnpin for SourceUnit
impl UnwindSafe for SourceUnit
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