pub struct Selection {
pub files: BTreeMap<String, File>,
/* private fields */
}
Expand description
The solc --standard-json
output selection.
Fields§
§files: BTreeMap<String, File>
Implementations§
Source§impl Selection
impl Selection
Sourcepub fn new_required() -> Self
pub fn new_required() -> Self
Creates the selection required by our compilation process.
Sourcepub fn new_required_for_tests() -> Self
pub fn new_required_for_tests() -> Self
Creates the selection required for test compilation (includes EVM bytecode).
Sourcepub fn new_yul_validation() -> Self
pub fn new_yul_validation() -> Self
Creates the selection required by Yul validation process.
Sourcepub fn extend(&mut self, other: Self) -> &mut Self
pub fn extend(&mut self, other: Self) -> &mut Self
Extends the output selection with another one.
Sourcepub fn selection_to_prune(&self) -> Self
pub fn selection_to_prune(&self) -> Self
Returns flags that are going to be automatically added by the compiler, but were not explicitly requested by the user.
Afterwards, the flags are used to prune JSON output before returning it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selection
impl<'de> Deserialize<'de> for Selection
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
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more