pub enum ModuleExecutable {
Surrealism(SurrealismExecutable),
Silo(SiloExecutable),
}Variants§
Surrealism(SurrealismExecutable)
Silo(SiloExecutable)
Implementations§
Source§impl ModuleExecutable
impl ModuleExecutable
Sourcepub fn walk_revisioned_variant_name(
wire_revision: u16,
discriminant: u32,
) -> Option<&'static str>
pub fn walk_revisioned_variant_name( wire_revision: u16, discriminant: u32, ) -> Option<&'static str>
Resolve a wire discriminant at wire_revision to the variant
identifier at that revision. Returns None if no such variant
exists at that revision.
Generated by the revisioned derive.
Sourcepub fn walk_revisioned_variant_table(
wire_revision: u16,
) -> &'static [(&'static str, u32)]
pub fn walk_revisioned_variant_table( wire_revision: u16, ) -> &'static [(&'static str, u32)]
Variant name + discriminant pairs at wire_revision. Returns
an empty slice if the revision is unknown. Generated by the
revisioned derive.
Trait Implementations§
Source§impl Clone for ModuleExecutable
impl Clone for ModuleExecutable
Source§impl Debug for ModuleExecutable
impl Debug for ModuleExecutable
impl Eq for ModuleExecutable
Source§impl From<ModuleExecutable> for ModuleExecutable
impl From<ModuleExecutable> for ModuleExecutable
Source§fn from(executable: ModuleExecutable) -> Self
fn from(executable: ModuleExecutable) -> Self
Converts to this type from the input type.
Source§impl From<ModuleExecutable> for ModuleExecutable
impl From<ModuleExecutable> for ModuleExecutable
Source§fn from(executable: ExprModuleExecutable) -> Self
fn from(executable: ExprModuleExecutable) -> Self
Converts to this type from the input type.
Source§impl Hash for ModuleExecutable
impl Hash for ModuleExecutable
Source§impl InfoStructure for ModuleExecutable
impl InfoStructure for ModuleExecutable
Source§impl PartialEq for ModuleExecutable
impl PartialEq for ModuleExecutable
Source§impl Revisioned for ModuleExecutable
impl Revisioned for ModuleExecutable
Source§impl SkipRevisioned for ModuleExecutable
impl SkipRevisioned for ModuleExecutable
fn skip_revisioned<R: Read>(reader: &mut R) -> Result<(), Error>
Source§fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
Consume through bytes backed by
SliceReader without allocating a buffer for bulk segments. Read moreSource§impl StoredField for ModuleExecutable
impl StoredField for ModuleExecutable
Source§fn encode_item(
&self,
enc: &mut Encoder,
prior: Option<Item<'_>>,
) -> Result<(), SchemaError>
fn encode_item( &self, enc: &mut Encoder, prior: Option<Item<'_>>, ) -> Result<(), SchemaError>
Prepends this value’s item to
enc. prior is the item this value replaces, whose unknown
ignorable entries the new item carries over.Source§fn decode_item(item: Item<'_>, depth: u32) -> Result<Self, SchemaError>
fn decode_item(item: Item<'_>, depth: u32) -> Result<Self, SchemaError>
Reads an item.
depth counts the schema maps entered so far.Source§fn floor(&self, acc: &mut Floor) -> Result<(), SchemaError>
fn floor(&self, acc: &mut Floor) -> Result<(), SchemaError>
Folds this value’s floor into
acc. A scalar adds nothing.Source§fn unrevisioned_floor(&self) -> Option<Release>
fn unrevisioned_floor(&self) -> Option<Release>
The newest release of an
Unrevisioned field holding a non-default value, if any: the
revision encoding cannot hold such a value.Source§fn into_vm_value(self) -> Result<Value, SchemaError>
fn into_vm_value(self) -> Result<Value, SchemaError>
The value the VM holds for this, in the shape its programs build: a struct as an object, an
enum as
{Variant: body}.Source§fn from_vm_value(value: Value) -> Result<Self, SchemaError>
fn from_vm_value(value: Value) -> Result<Self, SchemaError>
The inverse of
StoredField::into_vm_value.Source§fn write_type_name(out: &mut String)
fn write_type_name(out: &mut String)
Appends the canonical wire type name that the schema lock records. Aliases are not
distinct types: only a change of what the bytes mean changes the name.
Source§fn collect_schemas(out: &mut Vec<&'static TypeSchema>)
fn collect_schemas(out: &mut Vec<&'static TypeSchema>)
Adds the schema of every derived type this type holds, each once.
Source§const NULLABLE: bool = false
const NULLABLE: bool = false
Whether the VM reads an
Option of this type as [x] for Some(x), because the type can
itself be NONE.Source§fn to_vm_value(&self) -> Result<Value, SchemaError>where
Self: Clone,
fn to_vm_value(&self) -> Result<Value, SchemaError>where
Self: Clone,
StoredField::into_vm_value of a copy.Source§fn write_list_type_name(out: &mut String)
fn write_list_type_name(out: &mut String)
Appends the wire type name of a list of these.
Source§fn encode_list(
items: &[Self],
enc: &mut Encoder,
prior: Option<Item<'_>>,
) -> Result<(), SchemaError>
fn encode_list( items: &[Self], enc: &mut Encoder, prior: Option<Item<'_>>, ) -> Result<(), SchemaError>
Prepends a list of these: an ARRAY container of items. An element carries the prior element
at its position only when the two are equal, so a reorder never moves one element’s unknown
entries onto another.
Source§fn decode_list(item: Item<'_>, depth: u32) -> Result<Vec<Self>, SchemaError>
fn decode_list(item: Item<'_>, depth: u32) -> Result<Vec<Self>, SchemaError>
Reads a list of these.
Source§fn into_vm_list(items: Vec<Self>) -> Result<Value, SchemaError>
fn into_vm_list(items: Vec<Self>) -> Result<Value, SchemaError>
The VM value of a list of these: an array of each element’s VM value.
Source§fn from_vm_list(value: Value) -> Result<Vec<Self>, SchemaError>
fn from_vm_list(value: Value) -> Result<Vec<Self>, SchemaError>
The inverse of
StoredField::into_vm_list.Source§impl StoredType for ModuleExecutable
impl StoredType for ModuleExecutable
const SCHEMA: TypeSchema
impl StructuralPartialEq for ModuleExecutable
Source§impl WalkRevisioned for ModuleExecutable
impl WalkRevisioned for ModuleExecutable
Source§type Walker<'r, R: BorrowedReader + 'r> = ModuleExecutableWalker<'r, R>
type Walker<'r, R: BorrowedReader + 'r> = ModuleExecutableWalker<'r, R>
Walker produced by
walk_revisioned. Read moreSource§fn walk_revisioned<'r, R: BorrowedReader>(
reader: &'r mut R,
) -> Result<Self::Walker<'r, R>, Error>
fn walk_revisioned<'r, R: BorrowedReader>( reader: &'r mut R, ) -> Result<Self::Walker<'r, R>, Error>
Read the type’s revision-level prefix and return a walker positioned at
the start of the body. Read more
Auto Trait Implementations§
impl Forget for ModuleExecutable
impl Freeze for ModuleExecutable
impl RefUnwindSafe for ModuleExecutable
impl Send for ModuleExecutable
impl Sync for ModuleExecutable
impl Unpin for ModuleExecutable
impl UnsafeUnpin for ModuleExecutable
impl UnwindSafe for ModuleExecutable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.