pub enum RawConvertor {
StrictDecode(SemId),
AluVM(LibSite),
}
Variants§
StrictDecode(SemId)
Convert raw bytes using strict encoding.
AluVM(LibSite)
Execute a custom function.
Tuple Fields
§
0: LibSite
The entry point to the script (virtual machine uses libraries from
crate::Semantics
).
Implementations§
Source§impl RawConvertor
impl RawConvertor
pub fn convert( &self, raw: &RawData, sys: &TypeSystem, ) -> Result<StrictVal, StateConvertError>
Trait Implementations§
Source§impl Clone for RawConvertor
impl Clone for RawConvertor
Source§fn clone(&self) -> RawConvertor
fn clone(&self) -> RawConvertor
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 RawConvertor
impl Debug for RawConvertor
Source§impl<'de> Deserialize<'de> for RawConvertor
impl<'de> Deserialize<'de> for RawConvertor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for RawConvertor
impl Hash for RawConvertor
Source§impl Ord for RawConvertor
impl Ord for RawConvertor
Source§fn cmp(&self, other: &RawConvertor) -> Ordering
fn cmp(&self, other: &RawConvertor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RawConvertor
impl PartialEq for RawConvertor
Source§impl PartialOrd for RawConvertor
impl PartialOrd for RawConvertor
Source§impl Serialize for RawConvertor
impl Serialize for RawConvertor
Source§impl StrictDecode for RawConvertor
impl StrictDecode for RawConvertor
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for RawConvertor
impl StrictDumb for RawConvertor
fn strict_dumb() -> Self
Source§impl StrictEncode for RawConvertor
impl StrictEncode for RawConvertor
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for RawConvertor
impl StrictSum for RawConvertor
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for RawConvertor
impl StrictType for RawConvertor
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for RawConvertor
impl StrictUnion for RawConvertor
fn strict_type_info() -> TypeInfo<Self>
impl Eq for RawConvertor
impl StructuralPartialEq for RawConvertor
Auto Trait Implementations§
impl Freeze for RawConvertor
impl RefUnwindSafe for RawConvertor
impl Send for RawConvertor
impl Sync for RawConvertor
impl Unpin for RawConvertor
impl UnwindSafe for RawConvertor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.