Struct ethers_solc::resolver::Node
source · pub struct Node { /* private fields */ }
Implementations§
source§impl Node
impl Node
sourcepub fn read(file: impl AsRef<Path>) -> Result<Self>
pub fn read(file: impl AsRef<Path>) -> Result<Self>
Reads the content of the file and returns a Node containing relevant information
pub fn content(&self) -> &str
pub fn imports(&self) -> &Vec<SolDataUnit<SolImport>>
pub fn version(&self) -> &Option<SolDataUnit<String>>
pub fn experimental(&self) -> &Option<SolDataUnit<String>>
pub fn license(&self) -> &Option<SolDataUnit<String>>
pub fn unpack(&self) -> (&PathBuf, &Source)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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