pub struct CompilerArtifact {
pub(crate) bytecode: String,
pub(crate) runtime: String,
pub(crate) abi: Option<Abi>,
pub(crate) constructor_map: Option<Vec<SourceMapEntry>>,
pub(crate) runtime_map: Option<Vec<SourceMapEntry>>,
}Expand description
Compiled artifact for a Huff contract
Fields§
§bytecode: String§runtime: String§abi: Option<Abi>§constructor_map: Option<Vec<SourceMapEntry>>§runtime_map: Option<Vec<SourceMapEntry>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompilerArtifact
impl<'de> Deserialize<'de> for CompilerArtifact
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<CompilerArtifact> for JsValuewhere
CompilerArtifact: Serialize,
impl From<CompilerArtifact> for JsValuewhere
CompilerArtifact: Serialize,
Source§fn from(value: CompilerArtifact) -> Self
fn from(value: CompilerArtifact) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
impl FromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &CompilerArtifactwhere
CompilerArtifact: Serialize,
impl IntoWasmAbi for &CompilerArtifactwhere
CompilerArtifact: Serialize,
Source§impl IntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
impl IntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
Source§impl OptionFromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
impl OptionIntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
Source§impl RefFromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CompilerArtifactwhere
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<CompilerArtifact>
type Anchor = SelfOwner<CompilerArtifact>
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 CompilerArtifact
impl Serialize for CompilerArtifact
Source§impl Tsify for CompilerArtifact
impl Tsify for CompilerArtifact
const DECL: &'static str = "/**\n * Compiled artifact for a Huff contract\n */\nexport interface CompilerArtifact {\n bytecode: string;\n runtime: string;\n abi: Abi | undefined;\n constructor_map: SourceMapEntry[] | undefined;\n runtime_map: SourceMapEntry[] | 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 CompilerArtifactwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CompilerArtifactwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
impl VectorIntoWasmAbi for CompilerArtifactwhere
CompilerArtifact: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for CompilerArtifact
impl WasmDescribe for CompilerArtifact
Auto Trait Implementations§
impl Freeze for CompilerArtifact
impl RefUnwindSafe for CompilerArtifact
impl Send for CompilerArtifact
impl Sync for CompilerArtifact
impl Unpin for CompilerArtifact
impl UnsafeUnpin for CompilerArtifact
impl UnwindSafe for CompilerArtifact
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: 200 bytes