Enum uiua::Value

source ·
#[repr(C)]
pub enum Value { Num(Array<f64>), Byte(Array<u8>), Complex(Array<Complex>), Char(Array<char>), Box(Array<Boxed>), }
Expand description

A generic array value

This enum is used to represent all possible array types.

Variants§

§

Num(Array<f64>)

Common number array

§

Byte(Array<u8>)

Byte array used for some boolean operations and for I/O

§

Complex(Array<Complex>)

Complex number array

§

Char(Array<char>)

Common character array

§

Box(Array<Boxed>)

Common box array

Implementations§

source§

impl Value

source

pub fn join(self, other: Self, env: &Uiua) -> UiuaResult<Self>

join the array with another

source

pub fn join_infallible(self, other: Self) -> Self

join the array with another

§Panics

Panics if the arrays have incompatible shapes

source§

impl Value

source

pub fn couple(self, other: Self, env: &Uiua) -> UiuaResult<Self>

couple the value with another

source

pub fn couple_infallible(self, other: Self) -> Self

couple the value with another

§Panics

Panics if the values have incompatible shapes

source

pub fn uncouple(self, env: &Uiua) -> UiuaResult<(Self, Self)>

Uncouple the value into two values

source§

impl Value

source

pub fn from_row_values_infallible<V>(values: V) -> Self

Create a value from row values

§Panics

Panics if the row values have incompatible shapes

source

pub fn from_row_values<V, C>(values: V, ctx: &C) -> Result<Self, C::Error>
where V: IntoIterator<Item = Value>, V::IntoIter: ExactSizeIterator, C: FillContext,

Create a value from row values

source§

impl Value

source

pub fn pick(self, from: Self, env: &Uiua) -> UiuaResult<Self>

Use this array as an index to pick from another

source§

impl Value

source

pub fn take(self, from: Self, env: &Uiua) -> UiuaResult<Self>

Use this value to take from another

source

pub fn drop(self, from: Self, env: &Uiua) -> UiuaResult<Self>

Use this value to drop from another

source§

impl Value

source

pub fn select(&self, from: &Self, env: &Uiua) -> UiuaResult<Self>

Use this value to select from another

source§

impl Value

source

pub fn reshape(&mut self, shape: &Self, env: &Uiua) -> UiuaResult

reshape this value with another

source§

impl Value

source

pub fn rerank(&mut self, rank: &Self, env: &Uiua) -> UiuaResult

rerank this value with another

source§

impl Value

source

pub fn keep(&self, kept: Self, env: &Uiua) -> UiuaResult<Self>

Use this value as counts to keep another

source§

impl Value

source

pub fn rotate(&self, rotated: Self, env: &Uiua) -> UiuaResult<Self>

Use this value to rotate another

source§

impl Value

source

pub fn windows(&self, from: &Self, env: &Uiua) -> UiuaResult<Self>

Use this array to windows another

source§

impl Value

source

pub fn find(&self, searched: &Self, env: &Uiua) -> UiuaResult<Self>

Try to find this value in another

source§

impl Value

source

pub fn member(&self, of: &Self, env: &Uiua) -> UiuaResult<Self>

Check which rows of this value are members of another

source§

impl Value

source

pub fn index_of(&self, searched_in: &Value, env: &Uiua) -> UiuaResult<Value>

Get the index of the rows of this value in another

source

pub fn progressive_index_of( &self, searched_in: &Value, env: &Uiua ) -> UiuaResult<Value>

Get the progressive index of the rows of this value in another

source§

impl Value

source

pub fn map(self, values: Self, env: &Uiua) -> UiuaResult<Value>

Create a map array

source

pub fn unmap(self, env: &Uiua) -> UiuaResult<(Value, Value)>

Turn a map array into its keys and values

source

pub fn get(&self, key: &Value, env: &Uiua) -> UiuaResult<Value>

Get a value from a map array

source

pub fn has_key(&self, key: &Value, env: &Uiua) -> UiuaResult<bool>

Check if a map array contains a key

source

pub fn insert(&mut self, key: Value, value: Value, env: &Uiua) -> UiuaResult

Insert a key-value pair into a map array

source

pub fn remove(&mut self, key: Value, env: &Uiua) -> UiuaResult

Remove a key-value pair from a map array

source§

impl Value

source

pub fn deshape(&mut self)

Make the value 1-dimensional

source

pub fn fix(&mut self)

Add a 1-length dimension to the front of the value’s shape

source

pub fn parse_num(&self, env: &Uiua) -> UiuaResult<Self>

Attempt to parse the value into a number

source

pub fn representation(&self) -> Self

Convert value into a string that can be understood by the interpreter

source§

impl Value

source

pub fn range(&self, env: &Uiua) -> UiuaResult<Self>

Create a range array

source§

impl Value

source

pub fn first(self, env: &Uiua) -> UiuaResult<Self>

Get the first row of the value

source

pub fn last(self, env: &Uiua) -> UiuaResult<Self>

Get the last row of the value

source§

impl Value

source

pub fn reverse(&mut self)

Reverse the rows of the value

source§

impl Value

source

pub fn transpose(&mut self)

Transpose the value

source§

impl Value

source

pub fn rise(&self, env: &Uiua) -> UiuaResult<Vec<usize>>

Get the rise of the value

source

pub fn fall(&self, env: &Uiua) -> UiuaResult<Vec<usize>>

Get the fall of the value

source

pub fn sort_up(&mut self, env: &Uiua) -> UiuaResult

Sort the value ascending

source

pub fn sort_down(&mut self, env: &Uiua) -> UiuaResult

Sort the value descending

source

pub fn classify(&self) -> Self

classify the rows of the value

source

pub fn deduplicate(&mut self)

deduplicate the rows of the value

source

pub fn unique(&self) -> Self

Mask the unique rows of the value

source§

impl Value

source

pub fn bits(&self, env: &Uiua) -> UiuaResult<Array<u8>>

Encode the bits of the value

source

pub fn inv_bits(&self, env: &Uiua) -> UiuaResult<Array<f64>>

Decode the bits of the value

source§

impl Value

source

pub fn wher(&self, env: &Uiua) -> UiuaResult<Array<f64>>

Get the indices where the value is nonzero

source

pub fn first_where(&self, env: &Uiua) -> UiuaResult<Array<f64>>

Get the first index where the value is nonzero

source

pub fn inv_where(&self, env: &Uiua) -> UiuaResult<Self>

un where

source§

impl Value

source

pub fn utf8(&self, env: &Uiua) -> UiuaResult<Self>

Convert a string value to a list of UTF-8 bytes

source

pub fn inv_utf8(&self, env: &Uiua) -> UiuaResult<Self>

Convert a list of UTF-8 bytes to a string value

source§

impl Value

source

pub fn as_num_array(&self) -> Option<&Array<f64>>

Get a reference to a possible number array

source

pub fn as_byte_array(&self) -> Option<&Array<u8>>

Get a reference to a possible byte array

source

pub fn as_char_array(&self) -> Option<&Array<char>>

Get a reference to a possible character array

source

pub fn as_box_array(&self) -> Option<&Array<Boxed>>

Get a reference to a possible box array

source

pub fn as_box(&self) -> Option<&Boxed>

Get a reference to a possible scalar box

source

pub fn rows(&self) -> Box<dyn ExactSizeIterator<Item = Self> + '_>

Get an iterator over the rows of the value

source

pub fn row_shaped_slices( &self, row_shape: Shape ) -> Box<dyn ExactSizeIterator<Item = Self> + '_>

Get an iterator over the rows of the value that have the given shape

source

pub fn into_row_shaped_slices( self, row_shape: Shape ) -> Box<dyn DoubleEndedIterator<Item = Self>>

Get an iterator over the rows of the value that have the given shape

source

pub fn into_rows(self) -> Box<dyn ExactDoubleIterator<Item = Self>>

Consume the value and get an iterator over its rows

source

pub fn into_elements(self) -> Box<dyn Iterator<Item = Self>>

Cosume the value and get an iterator over its elements

source

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

Get the value’s type name

source

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

Get a plural form of the value’s type name

source

pub fn row_count(&self) -> usize

Get the number of rows

source

pub fn row_len(&self) -> usize

Get the number of element in each row

source

pub fn rank(&self) -> usize

Get the rank

source§

impl Value

source

pub fn shape(&self) -> &Shape

Get the shape of the value

source

pub fn shape_mut(&mut self) -> &mut Shape

Get a mutable reference to the shape

source

pub fn element_count(&self) -> usize

Get the number of elements

source

pub fn meta(&self) -> &ArrayMeta

Get the value’s metadata

source

pub fn meta_mut(&mut self) -> &mut ArrayMeta

Get a mutable reference to the value’s metadata

source

pub fn take_label(&mut self) -> Option<EcoString>

Take the label from the value

source

pub fn combine_meta(&mut self, other: &ArrayMeta)

Combine this value’s metadata with another

source

pub fn reset_meta(&mut self)

Reset this value’s metadata

source

pub fn reset_meta_flags(&mut self)

Reset this value’s metadata flags

source

pub fn row(&self, i: usize) -> Self

Get the row at the given index

source

pub fn show(&self) -> String

Get the pretty-printed string representation of the value that appears in output

source

pub fn format(&self) -> String

Get the pretty-printed string representation of the value that appears when formatted

source

pub fn as_ints( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<isize>>

Attempt to convert the array to a list of integers

The requirement parameter is used in error messages.

source

pub fn as_bool(&self, env: &Uiua, requirement: &'static str) -> UiuaResult<bool>

Attempt to convert the array to a single boolean

The requirement parameter is used in error messages.

source

pub fn as_nat(&self, env: &Uiua, requirement: &'static str) -> UiuaResult<usize>

Attempt to convert the array to a single natural number

The requirement parameter is used in error messages.

source

pub fn as_int(&self, env: &Uiua, requirement: &'static str) -> UiuaResult<isize>

Attempt to convert the array to a single integer

The requirement parameter is used in error messages.

source

pub fn as_num(&self, env: &Uiua, requirement: &'static str) -> UiuaResult<f64>

Attempt to convert the array to a single number

The requirement parameter is used in error messages.

source

pub fn as_nums( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<f64>>

Attempt to convert the array to a list of numbers

The requirement parameter is used in error messages.

source

pub fn as_nats( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<usize>>

Attempt to convert the array to a list of natural numbers

The requirement parameter is used in error messages.

source

pub fn as_bytes( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<u8>>

Attempt to convert the array to a list of bytes

The requirement parameter is used in error messages.

source

pub fn as_rank_list( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<Option<isize>>>

Attempt to convert the array to a list of integers or infinity

None represents infinity.

The requirement parameter is used in error messages.

source

pub fn as_string( &self, env: &Uiua, requirement: &'static str ) -> UiuaResult<String>

Attempt to convert the array to a string

The requirement parameter is used in error messages.

source

pub fn into_bytes( self, env: &Uiua, requirement: &'static str ) -> UiuaResult<Vec<u8>>

Attempt to convert the array to a list of bytes

The requirement parameter is used in error messages.

source

pub fn unpack(&mut self)

Remove all top-level layers of boxing

source

pub fn unpacked(self) -> Self

Remove all top-level layers of boxing

source

pub fn map_boxed(self, f: impl FnOnce(Self) -> Self) -> Self

Apply a function to the highest-level unboxed value

source

pub fn try_map_boxed( self, f: impl FnOnce(Self) -> UiuaResult<Self> ) -> UiuaResult<Self>

Apply a function to the highest-level unboxed value

source

pub fn unbox(&mut self)

Remove a single layer of boxing

source

pub fn unboxed(self) -> Self

Remove a single layer of boxing

source

pub fn box_if_not(&mut self)

Turn the value into a scalar box if it is not one already

source

pub fn boxed_if_not(self) -> Boxed

Turn the value into a scalar box if it is not one already

source

pub fn compress(&mut self)

Turn a number array into a byte array if no information is lost.

Does nothing without the bytes feature enabled.

source

pub fn coerce_to_boxes(self) -> Array<Boxed>

Convert to a box array by boxing every element

source

pub fn coerce_as_boxes(&self) -> Cow<'_, Array<Boxed>>

Convert to a box array by boxing every element

source

pub fn keep_label( self, f: impl FnOnce(Self) -> UiuaResult<Self> ) -> UiuaResult<Self>

Propogate a value’s label accross an operation

source

pub fn keep_labels( self, other: Self, f: impl FnOnce(Self, Self) -> UiuaResult<Self> ) -> UiuaResult<Self>

Propogate values’ labels accross an operation

Trait Implementations§

source§

impl AsMut<Value> for Boxed

source§

fn as_mut(&mut self) -> &mut Value

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Value> for Boxed

source§

fn as_ref(&self) -> &Value

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

impl Borrow<Value> for Boxed

source§

fn borrow(&self) -> &Value

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<Value> for Boxed

source§

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

Mutably borrows from an owned value. Read more
source§

impl Clone for Value

source§

fn clone(&self) -> Value

Returns a copy 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 Default for Value

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Value

source§

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

source§

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

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

impl<'a> From<&'a str> for Value

source§

fn from(s: &'a str) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, CowSlice<Boxed>)> for Value

source§

fn from((shape, data): (Shape, CowSlice<Boxed>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, CowSlice<Complex>)> for Value

source§

fn from((shape, data): (Shape, CowSlice<Complex>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, CowSlice<char>)> for Value

source§

fn from((shape, data): (Shape, CowSlice<char>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, CowSlice<f64>)> for Value

source§

fn from((shape, data): (Shape, CowSlice<f64>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, CowSlice<u8>)> for Value

source§

fn from((shape, data): (Shape, CowSlice<u8>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, EcoVec<Boxed>)> for Value

source§

fn from((shape, data): (Shape, EcoVec<Boxed>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, EcoVec<Complex>)> for Value

source§

fn from((shape, data): (Shape, EcoVec<Complex>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, EcoVec<char>)> for Value

source§

fn from((shape, data): (Shape, EcoVec<char>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, EcoVec<f64>)> for Value

source§

fn from((shape, data): (Shape, EcoVec<f64>)) -> Self

Converts to this type from the input type.
source§

impl From<(Shape, EcoVec<u8>)> for Value

source§

fn from((shape, data): (Shape, EcoVec<u8>)) -> Self

Converts to this type from the input type.
source§

impl From<Array<Boxed>> for Value

source§

fn from(array: Array<Boxed>) -> Self

Converts to this type from the input type.
source§

impl From<Array<Complex>> for Value

source§

fn from(array: Array<Complex>) -> Self

Converts to this type from the input type.
source§

impl From<Array<char>> for Value

source§

fn from(array: Array<char>) -> Self

Converts to this type from the input type.
source§

impl From<Array<f64>> for Value

source§

fn from(array: Array<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Array<u8>> for Value

source§

fn from(array: Array<u8>) -> Self

Converts to this type from the input type.
source§

impl From<Boxed> for Value

source§

fn from(item: Boxed) -> Self

Converts to this type from the input type.
source§

impl From<Complex> for Value

source§

fn from(item: Complex) -> Self

Converts to this type from the input type.
source§

impl From<EcoVec<Boxed>> for Value

source§

fn from(vec: EcoVec<Boxed>) -> Self

Converts to this type from the input type.
source§

impl From<EcoVec<Complex>> for Value

source§

fn from(vec: EcoVec<Complex>) -> Self

Converts to this type from the input type.
source§

impl From<EcoVec<char>> for Value

source§

fn from(vec: EcoVec<char>) -> Self

Converts to this type from the input type.
source§

impl From<EcoVec<f64>> for Value

source§

fn from(vec: EcoVec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<EcoVec<u8>> for Value

source§

fn from(vec: EcoVec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<Handle> for Value

source§

fn from(handle: Handle) -> Self

Converts to this type from the input type.
source§

impl From<String> for Value

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Boxed

source§

fn from(v: Value) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Value

source§

fn from(b: bool) -> Self

Converts to this type from the input type.
source§

impl From<char> for Value

source§

fn from(item: char) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Value

source§

fn from(item: f64) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Value

source§

fn from(i: i32) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Value

source§

fn from(item: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Value

source§

fn from(i: usize) -> Self

Converts to this type from the input type.
source§

impl FromIterator<Boxed> for Value

source§

fn from_iter<I: IntoIterator<Item = Boxed>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Complex> for Value

source§

fn from_iter<I: IntoIterator<Item = Complex>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<char> for Value

source§

fn from_iter<I: IntoIterator<Item = char>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<f64> for Value

source§

fn from_iter<I: IntoIterator<Item = f64>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<u8> for Value

source§

fn from_iter<I: IntoIterator<Item = u8>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<usize> for Value

source§

fn from_iter<I: IntoIterator<Item = usize>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl Hash for Value

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

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Value

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Value

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Value

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Value

Auto Trait Implementations§

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

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
§

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

§

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

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
source§

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

§

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§

default 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>,

§

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>,

§

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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,