pub struct MemoryArtifact { /* private fields */ }Expand description
The common module records and containers. These explicit facade exports keep ordinary callers out of the component crate paths. One owned memory artifact.
Implementations§
Source§impl MemoryArtifact
impl MemoryArtifact
pub const fn new(name: ArtifactPath, bytes: Vec<u8>) -> MemoryArtifact
pub const fn name(&self) -> &ArtifactPath
pub fn bytes(&self) -> &[u8] ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Debug for MemoryArtifact
impl Debug for MemoryArtifact
impl Eq for MemoryArtifact
Source§impl PartialEq for MemoryArtifact
impl PartialEq for MemoryArtifact
Source§fn eq(&self, other: &MemoryArtifact) -> bool
fn eq(&self, other: &MemoryArtifact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryArtifact
Auto Trait Implementations§
impl Freeze for MemoryArtifact
impl RefUnwindSafe for MemoryArtifact
impl Send for MemoryArtifact
impl Sync for MemoryArtifact
impl Unpin for MemoryArtifact
impl UnsafeUnpin for MemoryArtifact
impl UnwindSafe for MemoryArtifact
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more