Struct ethers_solc::project_util::mock::MockProjectSkeleton
source · pub struct MockProjectSkeleton {
pub files: Vec<MockFile>,
pub libraries: Vec<MockLib>,
}
Available on crate feature
project-util
only.Expand description
Represents the layout of a project
Fields§
§files: Vec<MockFile>
all files for the project
libraries: Vec<MockLib>
all libraries
Implementations§
source§impl MockProjectSkeleton
impl MockProjectSkeleton
sourcepub fn imported_nodes(&self, from: usize) -> impl Iterator<Item = usize> + '_
pub fn imported_nodes(&self, from: usize) -> impl Iterator<Item = usize> + '_
Returns a list of file ids the given file id imports.
Trait Implementations§
source§impl Default for MockProjectSkeleton
impl Default for MockProjectSkeleton
source§fn default() -> MockProjectSkeleton
fn default() -> MockProjectSkeleton
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MockProjectSkeleton
impl<'de> Deserialize<'de> for MockProjectSkeleton
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 From<MockProjectSkeleton> for MockProjectGenerator
impl From<MockProjectSkeleton> for MockProjectGenerator
source§fn from(inner: MockProjectSkeleton) -> Self
fn from(inner: MockProjectSkeleton) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MockProjectSkeleton
impl Send for MockProjectSkeleton
impl Sync for MockProjectSkeleton
impl Unpin for MockProjectSkeleton
impl UnwindSafe for MockProjectSkeleton
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