pub struct CompilerOutput {
pub(crate) errors: Option<Vec<String>>,
pub(crate) contracts: Option<HashMap<String, CompilerArtifact>>,
}Expand description
Output from the Huff compiler
Fields§
§errors: Option<Vec<String>>§contracts: Option<HashMap<String, CompilerArtifact>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompilerOutput
impl<'de> Deserialize<'de> for CompilerOutput
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<CompilerOutput> for JsValuewhere
CompilerOutput: Serialize,
impl From<CompilerOutput> for JsValuewhere
CompilerOutput: Serialize,
Source§fn from(value: CompilerOutput) -> Self
fn from(value: CompilerOutput) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
impl FromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &CompilerOutputwhere
CompilerOutput: Serialize,
impl IntoWasmAbi for &CompilerOutputwhere
CompilerOutput: Serialize,
Source§impl IntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
impl IntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
Source§impl OptionFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
impl OptionIntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
Source§impl RefFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<CompilerOutput>
type Anchor = SelfOwner<CompilerOutput>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for CompilerOutput
impl Serialize for CompilerOutput
Source§impl Tsify for CompilerOutput
impl Tsify for CompilerOutput
const DECL: &'static str = "/**\n * Output from the Huff compiler\n */\nexport interface CompilerOutput {\n errors: string[] | undefined;\n contracts: Map<string, CompilerArtifact> | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CompilerOutputwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
impl VectorIntoWasmAbi for CompilerOutputwhere
CompilerOutput: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for CompilerOutput
impl WasmDescribe for CompilerOutput
Auto Trait Implementations§
impl Freeze for CompilerOutput
impl RefUnwindSafe for CompilerOutput
impl Send for CompilerOutput
impl Sync for CompilerOutput
impl Unpin for CompilerOutput
impl UnsafeUnpin for CompilerOutput
impl UnwindSafe for CompilerOutput
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes