pub struct ImportSpec {
pub root: RootIdentifier,
pub index: u16,
}Expand description
Import segments specification, which identifies a single exported segment.
Fields§
§root: RootIdentifierThe identifier of a series of exported segments.
index: u16The index into the identified series of exported segments.
Trait Implementations§
Source§impl Clone for ImportSpec
impl Clone for ImportSpec
Source§fn clone(&self) -> ImportSpec
fn clone(&self) -> ImportSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportSpec
impl Debug for ImportSpec
Source§impl Decode for ImportSpec
impl Decode for ImportSpec
Source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for ImportSpec
impl Encode for ImportSpec
Source§fn encode_to<T: Output + ?Sized>(&self, dest: &mut T)
fn encode_to<T: Output + ?Sized>(&self, dest: &mut T)
Convert self to a slice and append it to the destination.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for ImportSpec
impl Hash for ImportSpec
Source§impl MaxEncodedLen for ImportSpec
impl MaxEncodedLen for ImportSpec
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl PartialEq for ImportSpec
impl PartialEq for ImportSpec
impl Copy for ImportSpec
impl Eq for ImportSpec
impl StructuralPartialEq for ImportSpec
Auto Trait Implementations§
impl Freeze for ImportSpec
impl RefUnwindSafe for ImportSpec
impl Send for ImportSpec
impl Sync for ImportSpec
impl Unpin for ImportSpec
impl UnwindSafe for ImportSpec
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