pub trait Context {
type Phase: Phase;
// Required methods
fn slice<'a>(&'a self, bytes: &'a <Self::Phase as Phase>::Bytes) -> &'a [u8] ⓘ;
fn function(&self, index: usize) -> Option<&Func<Self::Phase>>;
fn pack(&self, index: usize) -> Option<impl Iterator<Item = Arg>>;
fn unpack_arity(&self, index: usize) -> Option<usize>;
fn symbol_valid(&self, index: usize) -> bool;
fn constant_valid(&self, index: usize) -> bool;
}Required Associated Types§
Required Methods§
fn slice<'a>(&'a self, bytes: &'a <Self::Phase as Phase>::Bytes) -> &'a [u8] ⓘ
fn function(&self, index: usize) -> Option<&Func<Self::Phase>>
fn pack(&self, index: usize) -> Option<impl Iterator<Item = Arg>>
fn unpack_arity(&self, index: usize) -> Option<usize>
fn symbol_valid(&self, index: usize) -> bool
fn constant_valid(&self, index: usize) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.