Skip to main content

Value

Struct Value 

Source
pub struct Value(/* private fields */);
Expand description

A Scheme value. See the module documentation for more information.

Implementations§

Source§

impl Value

Source

pub fn new(v: UnpackedValue) -> Self

Create a new Value from an UnpackedValue.

This is generally discouraged as it’s cumbersome; try using From instead.

Source

pub fn is_true(&self) -> bool

#f is false, everything else is true

Source

pub fn is_null(&self) -> bool

Source

pub fn is_undefined(&self) -> bool

Source

pub unsafe fn from_raw(raw: *const ()) -> Self

Creates a new Value from a raw u64.

§Safety

Calling this function is undefined behavior if the raw u64 was not obtained via into_raw

Source

pub unsafe fn from_raw_inc_rc(raw: *const ()) -> Self

Creates a new Value from a raw u64, incrementing the reference count.

§Safety

Calling this function is undefined behavior if the raw u64 was not obtained via into_raw

Source

pub fn into_raw(val: Self) -> *const ()

Creates a raw u64 from a Value. Does not decrement the reference count. Calling this function without turning the raw value into a Value via from_raw is equivalent to calling mem::forget on the value.

Source

pub fn as_raw(this: &Self) -> *const ()

Creates a raw u64 from the Value. Does not decrement the reference count.

Source

pub fn undefined() -> Self

Source

pub fn null() -> Self

Source

pub fn datum_from_syntax(syntax: &Syntax) -> Self

Convert a Syntax into its corresponding datum representation.

Source

pub fn type_of(&self) -> ValueType

Source

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

Source

pub fn cast_to_scheme_type<T>(&self) -> Option<T>
where for<'a> &'a Self: Into<Option<T>>,

Attempt to cast the value into a Scheme primitive type.

Source

pub fn try_to_scheme_type<T>(&self) -> Result<T, Exception>
where T: for<'a> TryFrom<&'a Self, Error = Exception>,

Attempt to cast the value into a Scheme primitive type and return a descriptive error on failure.

Source

pub fn cast_to_rust_type<T: SchemeCompatible>(&self) -> Option<Gc<T>>

Attempt to cast the value into a Rust type that implements SchemeCompatible.

Source

pub fn try_to_rust_type<T: SchemeCompatible>(&self) -> Result<Gc<T>, Exception>

Attempt to cast the value into a Rust type and return a descriptive error on failure.

Source

pub fn from_rust_type<T: SchemeCompatible>(t: T) -> Self

Automatically convert a SchemeCompatible type to a Record and then into a Value.

Source

pub fn unpack(self) -> UnpackedValue

Unpack the value into an enum representation.

Source

pub fn unpacked_ref(&self) -> UnpackedValueRef<'_>

Source

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

The eq? predicate as defined by the R6RS specification.

Source

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

The eqv? predicate as defined by the R6RS specification.

Source

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

The equal? predicate as defined by the R6RS specification.

Source

pub fn eq_hash<H: Hasher>(&self, state: &mut H)

Performs a hash suitable for use with eq? as an equivalance function

Source

pub fn eqv_hash<H: Hasher>(&self, state: &mut H)

Performs a hash suitable for use with eqv? as an equivalance function

Source

pub fn equal_hash<H: Hasher>( &self, recursive: &mut IndexSet<Value>, state: &mut H, )

Performs a hash suitable for use with equal? as an equivalance function

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Self

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 Debug for Value

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Value

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Value

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

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

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Arc<RecordTypeDescriptor>>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<ByteVector>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<ComplexNumber>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Exception>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Fixnum>

Source§

fn from(value: &Value) -> Option<Fixnum>

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Flonum>

Source§

fn from(value: &Value) -> Option<Flonum>

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Gc<Syntax>>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<HashTable>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Identifier>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Integer>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<List>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Number>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Pair>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Port>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Procedure>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Record>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<SimpleNumber>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Symbol>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<Vector>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<WideString>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<char>

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<f64>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<i128>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<i16>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<i32>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<i64>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<i8>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<isize>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<u128>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<u16>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<u32>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<u64>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<u8>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Option<usize>

Source§

fn from(value: &Value) -> Self

Converts to this type from the input type.
Source§

impl From<()> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<(Value, Value)> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<Arc<RecordTypeDescriptor>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<ByteVector> for Value

Source§

fn from(v: ByteVector) -> Self

Converts to this type from the input type.
Source§

impl From<Cell> for Value

Source§

fn from(cell: Cell) -> Self

Converts to this type from the input type.
Source§

impl From<ComplexNumber> for Value

Source§

fn from(n: ComplexNumber) -> Self

Converts to this type from the input type.
Source§

impl From<Exception> for Value

Source§

fn from(value: Exception) -> Self

Converts to this type from the input type.
Source§

impl From<Gc<Syntax>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<HashTable> for Value

Source§

fn from(v: HashTable) -> Self

Converts to this type from the input type.
Source§

impl From<Infallible> for Value

Source§

fn from(value: Infallible) -> Self

Converts to this type from the input type.
Source§

impl From<Integer> for Value

Source§

fn from(n: Integer) -> Self

Converts to this type from the input type.
Source§

impl From<List> for Value

Source§

fn from(value: List) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for Value

Source§

fn from(v: Number) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Option<T>> for Value
where Value: From<T> + From<bool>,

Source§

fn from(value: Option<T>) -> Self

Converts to this type from the input type.
Source§

impl From<Pair> for Value

Source§

fn from(v: Pair) -> Self

Converts to this type from the input type.
Source§

impl From<Port> for Value

Source§

fn from(v: Port) -> Self

Converts to this type from the input type.
Source§

impl From<Procedure> for Value

Source§

fn from(v: Procedure) -> Self

Converts to this type from the input type.
Source§

impl From<Record> for Value

Source§

fn from(v: Record) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleNumber> for Value

Source§

fn from(n: SimpleNumber) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Value

Source§

fn from(v: String) -> Self

Converts to this type from the input type.
Source§

impl From<Symbol> for Value

Source§

fn from(v: Symbol) -> Self

Converts to this type from the input type.
Source§

impl From<Syntax> for Value

Source§

fn from(v: Syntax) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<ByteVector>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<ComplexNumber>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<HashTable>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Integer>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Number>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Pair>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Port>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Procedure>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Record>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<SimpleNumber>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Symbol>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<Vector>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<WideString>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<char>

Source§

fn from(v: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<f64>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<i128>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<i16>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<i32>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<i64>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<i8>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<isize>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<u128>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<u16>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<u32>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<u64>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<u8>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Option<usize>

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for bool

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Value>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<Vector> for Value

Source§

fn from(v: Vector) -> Self

Converts to this type from the input type.
Source§

impl From<WideString> for Value

Source§

fn from(v: WideString) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Value

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<char> for Value

Source§

fn from(v: char) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(n: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for Value

Source§

fn from(n: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Value

Source§

fn from(n: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(n: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Value

Source§

fn from(n: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Value

Source§

fn from(n: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for Value

Source§

fn from(n: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for Value

Source§

fn from(n: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(n: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(n: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Value

Source§

fn from(n: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(n: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Value

Source§

fn from(n: usize) -> Self

Converts to this type from the input type.
Source§

impl Hash for Value

Default Hash implementation for Value is Value::eqv_hash. This produces reasonable hash maps.

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Value

Default PartialEq implementation for Value is Value::eqv. This allows us to implement Eq.

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Trace for Value

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<&Value> for (Value, Value)

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Arc<RecordTypeDescriptor>

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for ByteVector

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Cell

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for ComplexNumber

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<ComplexNumber, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Fixnum

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Flonum

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Gc<Syntax>

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for HashTable

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Identifier

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Integer

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<Integer, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for List

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Number

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Pair

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Port

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Procedure

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Record

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for SimpleNumber

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<SimpleNumber, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Symbol

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for Vector

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for WideString

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for char

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<&Value> for f64

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<f64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i128

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<i128, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i16

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<i16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i32

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<i32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i64

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<i64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i8

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<i8, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for isize

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<isize, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for u128

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<u128, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for u16

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<u16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for u32

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<u32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for u64

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<u64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for u8

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<u8, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for usize

Source§

type Error = Exception

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

fn try_from(value: &Value) -> Result<usize, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for ()

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for (Value, Value)

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Arc<RecordTypeDescriptor>

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for ByteVector

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Cell

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for ComplexNumber

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Gc<Syntax>

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for HashTable

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Integer

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Number

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Pair

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Port

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Procedure

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Record

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for SimpleNumber

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for String

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Symbol

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for Vector

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for WideString

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for char

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for f64

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for i128

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for i16

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for i32

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for i64

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for i8

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for isize

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for u128

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for u16

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for u32

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for u64

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for u8

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl TryFrom<Value> for usize

Source§

type Error = Exception

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

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

Performs the conversion.
Source§

impl Eq for Value

Eq can be implemented reasonably for Value since (eqv? +nan.0 +nan.0) is true

Source§

impl Send for Value

Source§

impl Sync for Value

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> ToDebugString for T
where T: Debug,

Source§

fn to_debug_string(&self) -> String

Returns the String produced by Ts Debug implementation.

§Examples
use malachite_base::strings::ToDebugString;

assert_eq!([1, 2, 3].to_debug_string(), "[1, 2, 3]");
assert_eq!(
    [vec![2, 3], vec![], vec![4]].to_debug_string(),
    "[[2, 3], [], [4]]"
);
assert_eq!(Some(5).to_debug_string(), "Some(5)");
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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