Skip to main content

OutgoingAssemblyTable

Trait OutgoingAssemblyTable 

Source
pub trait OutgoingAssemblyTable {
    // Required methods
    fn capacity(&self) -> usize;
    fn len(&self) -> usize;
    fn link_ids(&self) -> &[LinkId];
    fn original_hashes(&self) -> &[ResourceHash];
    fn push(&mut self, link_id: LinkId, original_hash: ResourceHash);
    fn swap_remove(&mut self, index: usize);

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn supports_static_continuations(&self) -> bool { ... }
    fn static_continuation(
        &self,
        _index: usize,
    ) -> Option<StaticResponseContinuation> { ... }
    fn set_static_continuation(
        &mut self,
        _index: usize,
        _continuation: StaticResponseContinuation,
    ) -> bool { ... }
}

Required Methods§

Source

fn capacity(&self) -> usize

Source

fn len(&self) -> usize

Source

fn original_hashes(&self) -> &[ResourceHash]

Source

fn push(&mut self, link_id: LinkId, original_hash: ResourceHash)

Source

fn swap_remove(&mut self, index: usize)

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl OutgoingAssemblyTable for HeapOutgoingAssemblyTable

Source§

impl<const MAX_OUTGOING_ASSEMBLIES: usize> OutgoingAssemblyTable for FixedOutgoingAssemblyTable<MAX_OUTGOING_ASSEMBLIES>

Source§

impl<const MAX_OUTGOING_ASSEMBLIES: usize> OutgoingAssemblyTable for FixedStaticOutgoingAssemblyTable<MAX_OUTGOING_ASSEMBLIES>