pub struct TargetModuleBundle {
pub schema_version: u16,
pub modules: Vec<TargetModuleImage>,
}Expand description
Canonical ordered target modules for one neutral artifact.
Fields§
§schema_version: u16Bundle schema.
modules: Vec<TargetModuleImage>Modules ordered by dependency stage and fusion-group identity.
Implementations§
Source§impl TargetModuleBundle
impl TargetModuleBundle
Sourcepub fn new(modules: Vec<TargetModuleImage>) -> Self
pub fn new(modules: Vec<TargetModuleImage>) -> Self
Construct and canonically order target modules.
Sourcepub fn to_bytes(&self) -> Result<Vec<u8>, TargetCompileError>
pub fn to_bytes(&self) -> Result<Vec<u8>, TargetCompileError>
Encode canonical target-module bytes.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, TargetCompileError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, TargetCompileError>
Decode and validate canonical target-module bytes.
Trait Implementations§
Source§impl Clone for TargetModuleBundle
impl Clone for TargetModuleBundle
Source§impl Debug for TargetModuleBundle
impl Debug for TargetModuleBundle
Source§impl<'de> Deserialize<'de> for TargetModuleBundle
impl<'de> Deserialize<'de> for TargetModuleBundle
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 Eq for TargetModuleBundle
Source§impl PartialEq for TargetModuleBundle
impl PartialEq for TargetModuleBundle
Source§impl Serialize for TargetModuleBundle
impl Serialize for TargetModuleBundle
impl StructuralPartialEq for TargetModuleBundle
Auto Trait Implementations§
impl Freeze for TargetModuleBundle
impl RefUnwindSafe for TargetModuleBundle
impl Send for TargetModuleBundle
impl Sync for TargetModuleBundle
impl Unpin for TargetModuleBundle
impl UnsafeUnpin for TargetModuleBundle
impl UnwindSafe for TargetModuleBundle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.