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 duplicate 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