Skip to main content

UnpackedValue

Enum UnpackedValue 

Source
#[non_exhaustive]
pub enum UnpackedValue {
Show 17 variants Undefined, Null, Boolean(bool), Character(char), Number(Number), String(WideString), Symbol(Symbol), Vector(Vector), ByteVector(ByteVector), Syntax(Gc<Syntax>), Procedure(Procedure), Record(Record), RecordTypeDescriptor(Arc<RecordTypeDescriptor>), Pair(Pair), Port(Port), HashTable(HashTable), Cell(Cell),
}
Expand description

The external, unpacked, enumeration representation of a scheme value.

Values that are not potentially cyclical, such as syntax objects and byte vectors use Arcs as they are much less expensive than Gc types.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Undefined

§

Null

§

Boolean(bool)

§

Character(char)

§

Number(Number)

§

String(WideString)

§

Symbol(Symbol)

§

Vector(Vector)

§

ByteVector(ByteVector)

§

Syntax(Gc<Syntax>)

§

Procedure(Procedure)

§

Record(Record)

§

RecordTypeDescriptor(Arc<RecordTypeDescriptor>)

§

Pair(Pair)

§

Port(Port)

§

HashTable(HashTable)

§

Cell(Cell)

Implementations§

Source§

impl UnpackedValue

Source

pub fn into_value(self) -> Value

Source

pub fn eq(&self, rhs: &Self) -> bool

Source

pub fn eqv(&self, rhs: &Self) -> bool

Source

pub fn type_name(&self) -> &'static str

Source

pub fn type_of(&self) -> ValueType

Trait Implementations§

Source§

impl AsRef<UnpackedValue> for UnpackedValueRef<'_>

Source§

fn as_ref(&self) -> &UnpackedValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for UnpackedValue

Source§

fn clone(&self) -> UnpackedValue

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<()> for UnpackedValue

Source§

fn from((): ()) -> Self

Converts to this type from the input type.
Source§

impl From<(Value, Value)> for UnpackedValue

Source§

fn from(v: (Value, Value)) -> Self

Converts to this type from the input type.
Source§

impl From<Arc<RecordTypeDescriptor>> for UnpackedValue

Source§

fn from(v: Arc<RecordTypeDescriptor>) -> Self

Converts to this type from the input type.
Source§

impl From<ByteVector> for UnpackedValue

Source§

fn from(v: ByteVector) -> Self

Converts to this type from the input type.
Source§

impl From<Cell> for UnpackedValue

Source§

fn from(cell: Cell) -> Self

Converts to this type from the input type.
Source§

impl From<Gc<Syntax>> for UnpackedValue

Source§

fn from(v: Gc<Syntax>) -> Self

Converts to this type from the input type.
Source§

impl From<HashTable> for UnpackedValue

Source§

fn from(v: HashTable) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for UnpackedValue

Source§

fn from(v: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Pair> for UnpackedValue

Source§

fn from(v: Pair) -> Self

Converts to this type from the input type.
Source§

impl From<Port> for UnpackedValue

Source§

fn from(v: Port) -> Self

Converts to this type from the input type.
Source§

impl From<Procedure> for UnpackedValue

Source§

fn from(v: Procedure) -> Self

Converts to this type from the input type.
Source§

impl From<Record> for UnpackedValue

Source§

fn from(v: Record) -> Self

Converts to this type from the input type.
Source§

impl From<String> for UnpackedValue

Source§

fn from(v: String) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for UnpackedValue

Source§

fn from(v: Symbol) -> Self

Converts to this type from the input type.
Source§

impl From<Syntax> for UnpackedValue

Source§

fn from(v: Syntax) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<(Value, Value)>

Source§

fn from(val: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Arc<RecordTypeDescriptor>>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<ByteVector>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Gc<Syntax>>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<HashTable>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Number>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Pair>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Port>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Procedure>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Record>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Symbol>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<Vector>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<WideString>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<UnpackedValue> for Option<char>

Source§

fn from(v: UnpackedValue) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Value>> for UnpackedValue

Source§

fn from(v: Vec<Value>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for UnpackedValue

Source§

fn from(v: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl From<Vector> for UnpackedValue

Source§

fn from(v: Vector) -> Self

Converts to this type from the input type.
Source§

impl From<WideString> for UnpackedValue

Source§

fn from(v: WideString) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for UnpackedValue

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<char> for UnpackedValue

Source§

fn from(v: char) -> Self

Converts to this type from the input type.
Source§

impl Trace for UnpackedValue

Source§

unsafe fn visit_children(&self, visitor: &mut dyn FnMut(OpaqueGcPtr))

Safety Read more
Source§

unsafe fn finalize(&mut self)

Safety Read more
Source§

impl TryFrom<UnpackedValue> for ()

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(value: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for (Value, Value)

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(val: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Arc<RecordTypeDescriptor>

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for ByteVector

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Cell

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Gc<Syntax>

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for HashTable

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Number

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Pair

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Port

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Procedure

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Record

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Symbol

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for Vector

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for WideString

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnpackedValue> for char

Source§

type Error = Exception

The type returned in the event of a conversion error.
Source§

fn try_from(v: UnpackedValue) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ExactFrom<T> for U
where U: TryFrom<T>,

Source§

fn exact_from(value: T) -> U

Source§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

Source§

fn exact_into(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

Source§

impl<T, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

Source§

fn wrapping_into(self) -> U