pub enum SolInputKind {
Type(Type),
Sol(File),
Json(Ident, ContractObject),
}
Expand description
Parsed input for sol!
-like macro expanders. This enum represents a Sol
file, a JSON ABI, or
a Solidity type.
Variants§
Type(Type)
Solidity type.
Sol(File)
Solidity file or snippet.
Json(Ident, ContractObject)
Available on crate feature
json
only.JSON ABI file
Trait Implementations§
source§impl Clone for SolInputKind
impl Clone for SolInputKind
source§fn clone(&self) -> SolInputKind
fn clone(&self) -> SolInputKind
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 SolInputKind
impl Debug for SolInputKind
source§impl Parse for SolInputKind
impl Parse for SolInputKind
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Freeze for SolInputKind
impl RefUnwindSafe for SolInputKind
impl !Send for SolInputKind
impl !Sync for SolInputKind
impl Unpin for SolInputKind
impl UnwindSafe for SolInputKind
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)