Struct Dynamic

Source
pub struct Dynamic { /* private fields */ }

Implementations§

Source§

impl Dynamic

Source

pub fn call_function( &self, function: DString, parameters: &mut [UnverifiedDartHandle], ) -> Result<Dynamic, Error>

Source

pub fn get_field(&self, field: DString) -> Result<Dynamic, Error>

Source

pub fn set_field( &self, field: DString, value: UnverifiedDartHandle, ) -> Result<(), Error>

Source

pub fn get_property(&self, property: DString) -> Result<Dynamic, Error>

Source

pub fn set_property( &self, property: DString, value: UnverifiedDartHandle, ) -> Result<(), Error>

Source

pub fn get_type(&self) -> Dynamic

Source

pub fn type_name(&self) -> String

Source

pub fn call_as_function( &self, parameters: &mut [UnverifiedDartHandle], ) -> Result<Dynamic, Error>

Source

pub fn from<T: DartHandle>(x: T) -> Self

Methods from Deref<Target = UnverifiedDartHandle>§

Source

pub fn to_string(&self) -> Result<CString, Error>

Calls Object.toString() on an object and returns a CString should it succeed, or

Source

pub fn is_null(&self) -> bool

Checks if a handle is to the Null object.

See Dart_IsNull for more information.

Source

pub fn equals(&self, other: Self) -> Result<bool, Error>

Checks equality. Not too sure what this does different from identical.

See Dart_ObjectEquals for more information.

Source

pub fn instanceof(&self, ty: Self) -> Result<bool, Error>

Is self instanceof ty? ty must be a Type.

See Dart_ObjectIsType for more information.

Source

pub fn is_instance(&self) -> bool

Is self an instance of an object?

See Dart_IsInstance for more information.

Source

pub fn is_integer(&self) -> bool

Source

pub fn is_double(&self) -> bool

Source

pub fn is_boolean(&self) -> bool

Source

pub fn is_string(&self) -> bool

Source

pub fn is_string_latin1(&self) -> bool

Source

pub fn is_external_string(&self) -> bool

Source

pub fn is_list(&self) -> bool

Source

pub fn is_map(&self) -> bool

Source

pub fn is_library(&self) -> bool

Source

pub fn is_type(&self) -> bool

Source

pub fn is_function(&self) -> bool

Source

pub fn is_variable(&self) -> bool

Source

pub fn is_type_variable(&self) -> bool

Is self the type variable in a generic function or type?

void Foo<T>() {}
         ^-- Type variable
Source

pub fn is_closure(&self) -> bool

Source

pub fn is_typed_data(&self) -> bool

Source

pub fn is_byte_buffer(&self) -> bool

Source

pub fn is_future(&self) -> bool

Source

pub fn get_instance_type(&self) -> Result<Self, Error>

Source

pub fn get_class_name(&self) -> Result<Self, Error>

Source

pub fn get_function_name(&self) -> Result<Self, Error>

Source

pub fn get_function_owner(&self) -> Result<Self, Error>

Source

pub fn function_is_static(&self) -> Result<bool, Error>

Source

pub fn is_tear_off(&self) -> bool

A tear off is when you create an implicit closure which calls a single function on an object:

var someList = <String>[];
var anotherList = ['a', 'b', 'c'];
anotherList.forEach(someList.add); //Tearing off here gives me
                                   //a void Function(String).
Source

pub fn function_from_closure(&self) -> Result<Self, Error>

Source

pub fn library_from_class(&self) -> Result<Self, Error>

Source

pub fn integer_fits_in_i64(&self) -> Result<bool, Error>

Source

pub fn integer_fits_in_u64(&self) -> Result<bool, Error>

Source

pub fn get_i64(&self) -> Result<i64, Error>

Source

pub fn get_u64(&self) -> Result<u64, Error>

Source

pub fn get_integer_hex_string(&self) -> Result<CString, Error>

Source

pub fn get_f64(&self) -> Result<f64, Error>

Source

pub fn get_bool(&self) -> Result<bool, Error>

Source

pub fn string_length(&self) -> Result<usize, Error>

Source

pub fn string_to_cstring(&self) -> Result<CString, Error>

Source

pub fn string_to_utf8(&self) -> Result<String, Error>

Source

pub fn string_storage_size(&self) -> Result<usize, Error>

Source

pub fn new_list_of_self_as_type(&self, length: usize) -> Result<Self, Error>

Source

pub fn list_length(&self) -> Result<usize, Error>

Source

pub fn list_at(&self, index: usize) -> Result<Self, Error>

Source

pub fn list_get_range( &self, range: impl RangeBounds<usize>, ) -> Result<Self, Error>

Source

pub fn list_set_at(&self, item: Self, index: usize) -> Result<(), Error>

Source

pub fn map_get_at(&self, key: Self) -> Result<Option<Self>, Error>

Source

pub fn map_contains_key(&self, key: Self) -> Result<Self, Error>

Source

pub fn map_keys(&self) -> Result<Self, Error>

Source

pub fn typed_data_get_type(&self) -> Dart_TypedData_Type

Source

pub fn external_typed_data_get_type(&self) -> Dart_TypedData_Type

Source

pub fn new_of_type_self( &self, constructor_name: Option<Self>, args: &mut [Self], ) -> Result<Self, Error>

Source

pub fn allocate_of_type_self(&self) -> Result<Self, Error>

Source

pub fn invoke( &self, function_name: Self, args: &mut [Self], ) -> Result<Self, Error>

Invokes a method on self, where self may be a:

  • Instance: Invokes a member method.
  • Class: Invokes a static method.
  • Library: Invokes a static top level method.

See Dart_Invoke for more information.

Source

pub fn invoke_closure(&self, args: &mut [Self]) -> Result<Self, Error>

Source

pub fn invoke_self_constructor( &self, name: Option<Self>, args: &mut [Self], ) -> Result<Self, Error>

Invokes the constructor on a type, using the default constructor if name is None.

See Dart_InvokeConstructor for more information.

Source

pub fn get_field(&self, name: Self) -> Result<Self, Error>

Source

pub fn set_field(&self, name: Self, value: Self) -> Result<(), Error>

Source

pub fn get_library_url_import(&self) -> Result<Self, Error>

Source

pub fn get_library_url_path(&self) -> Result<Self, Error>

Source

pub fn get_loaded_libraries(&self) -> Result<Self, Error>

Source

pub fn op_add(&self, other: Self) -> Result<Self, Error>

Invokes an operator for an instance. These methods are shorthand instead of directly using invoke. These methods will just use the operator as the name of the method (+ for add, - for sub, etc.).

  • op_add: Addition (+).
  • op_sub: Subtraction (-).
  • op_mul: Multiplication (*).
  • op_div: Double Division (/).
  • op_rem: Remainder Division (%).
  • op_flr_div: Integer Division (~/).
  • op_neg: Unary Negation (-, unary-).
  • op_eq: Test for overloadable equality (==).
  • op_gt, op_gte, op_lt, op_lte: Comparison (>, >=, <, <=).
  • op_bitand: Binary and-ing (&).
  • op_bitor: Binary or-ing (|).
  • op_bitxor: Binary xor-ing (^).
  • op_bit_not: Binary not-ing (~).
  • op_shl: Binary left shift bits (<<).
  • op_shr: Binary right shift bits (>>).
  • op_idx: Indexing ([]).
  • op_idx_assign: Assignment to index ([]=).
Source

pub fn op_sub(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_mul(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_div(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_rem(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_flr_div(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_neg(&self) -> Result<Self, Error>

Source

pub fn op_eq(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_gt(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_gte(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_lt(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_lte(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_bitand(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_bitor(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_bitxor(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_bit_not(&self) -> Result<Self, Error>

Source

pub fn op_shl(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_shr(&self, other: Self) -> Result<Self, Error>

Source

pub fn op_idx(&self, idx: Self) -> Result<Self, Error>

Source

pub fn op_idx_assign(&self, idx: Self, value: Self) -> Result<(), Error>

Trait Implementations§

Source§

impl<'a, 'b> Add<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a Dynamic) -> Dynamic

Performs the + operation. Read more
Source§

impl<'a> Add<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a Dynamic) -> Dynamic

Performs the + operation. Read more
Source§

impl<'a> Add<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the + operator.
Source§

fn add(self, other: Dynamic) -> Dynamic

Performs the + operation. Read more
Source§

impl Add for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the + operator.
Source§

fn add(self, other: Dynamic) -> Dynamic

Performs the + operation. Read more
Source§

impl<'a> AddAssign<&'a Dynamic> for Dynamic

Source§

fn add_assign(&mut self, other: &'a Dynamic)

Performs the += operation. Read more
Source§

impl AddAssign for Dynamic

Source§

fn add_assign(&mut self, other: Dynamic)

Performs the += operation. Read more
Source§

impl<'a, 'b> BitAnd<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &'a Dynamic) -> Dynamic

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &'a Dynamic) -> Dynamic

Performs the & operation. Read more
Source§

impl<'a> BitAnd<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Dynamic) -> Dynamic

Performs the & operation. Read more
Source§

impl BitAnd for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Dynamic) -> Dynamic

Performs the & operation. Read more
Source§

impl<'a> BitAndAssign<&'a Dynamic> for Dynamic

Source§

fn bitand_assign(&mut self, other: &'a Dynamic)

Performs the &= operation. Read more
Source§

impl BitAndAssign for Dynamic

Source§

fn bitand_assign(&mut self, other: Dynamic)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitOr<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &'a Dynamic) -> Dynamic

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &'a Dynamic) -> Dynamic

Performs the | operation. Read more
Source§

impl<'a> BitOr<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Dynamic) -> Dynamic

Performs the | operation. Read more
Source§

impl BitOr for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Dynamic) -> Dynamic

Performs the | operation. Read more
Source§

impl<'a> BitOrAssign<&'a Dynamic> for Dynamic

Source§

fn bitor_assign(&mut self, other: &'a Dynamic)

Performs the |= operation. Read more
Source§

impl BitOrAssign for Dynamic

Source§

fn bitor_assign(&mut self, other: Dynamic)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitXor<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &'a Dynamic) -> Dynamic

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &'a Dynamic) -> Dynamic

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Dynamic) -> Dynamic

Performs the ^ operation. Read more
Source§

impl BitXor for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Dynamic) -> Dynamic

Performs the ^ operation. Read more
Source§

impl<'a> BitXorAssign<&'a Dynamic> for Dynamic

Source§

fn bitxor_assign(&mut self, other: &'a Dynamic)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for Dynamic

Source§

fn bitxor_assign(&mut self, other: Dynamic)

Performs the ^= operation. Read more
Source§

impl Clone for Dynamic

Source§

fn clone(&self) -> Dynamic

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 DartHandle for Dynamic

Source§

fn handle(&self) -> Dart_Handle

Gets the raw handle from a smart wrapper.
Source§

fn safe_handle(&self) -> UnverifiedDartHandle

Gets the smart handle from a smart wrapper.
Source§

fn from_handle( handle: UnverifiedDartHandle, ) -> Result<Self, UnverifiedDartHandle>

Creates a smart wrapper from a smart handle. Read more
Source§

impl DerefMut for Dynamic

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'a, 'b> Div<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the / operator.
Source§

fn div(self, other: &'a Dynamic) -> Dynamic

Performs the / operation. Read more
Source§

impl<'a> Div<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the / operator.
Source§

fn div(self, other: &'a Dynamic) -> Dynamic

Performs the / operation. Read more
Source§

impl<'a> Div<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the / operator.
Source§

fn div(self, other: Dynamic) -> Dynamic

Performs the / operation. Read more
Source§

impl Div for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the / operator.
Source§

fn div(self, other: Dynamic) -> Dynamic

Performs the / operation. Read more
Source§

impl<'a> DivAssign<&'a Dynamic> for Dynamic

Source§

fn div_assign(&mut self, other: &'a Dynamic)

Performs the /= operation. Read more
Source§

impl DivAssign for Dynamic

Source§

fn div_assign(&mut self, other: Dynamic)

Performs the /= operation. Read more
Source§

impl<'a, 'b> Mul<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Dynamic) -> Dynamic

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Dynamic) -> Dynamic

Performs the * operation. Read more
Source§

impl<'a> Mul<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the * operator.
Source§

fn mul(self, other: Dynamic) -> Dynamic

Performs the * operation. Read more
Source§

impl Mul for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the * operator.
Source§

fn mul(self, other: Dynamic) -> Dynamic

Performs the * operation. Read more
Source§

impl<'a> MulAssign<&'a Dynamic> for Dynamic

Source§

fn mul_assign(&mut self, other: &'a Dynamic)

Performs the *= operation. Read more
Source§

impl MulAssign for Dynamic

Source§

fn mul_assign(&mut self, other: Dynamic)

Performs the *= operation. Read more
Source§

impl<'a> Neg for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<'a> Not for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<'a, 'b> Rem<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the % operator.
Source§

fn rem(self, other: &'a Dynamic) -> Dynamic

Performs the % operation. Read more
Source§

impl<'a> Rem<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the % operator.
Source§

fn rem(self, other: &'a Dynamic) -> Dynamic

Performs the % operation. Read more
Source§

impl<'a> Rem<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the % operator.
Source§

fn rem(self, other: Dynamic) -> Dynamic

Performs the % operation. Read more
Source§

impl Rem for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the % operator.
Source§

fn rem(self, other: Dynamic) -> Dynamic

Performs the % operation. Read more
Source§

impl<'a> RemAssign<&'a Dynamic> for Dynamic

Source§

fn rem_assign(&mut self, other: &'a Dynamic)

Performs the %= operation. Read more
Source§

impl RemAssign for Dynamic

Source§

fn rem_assign(&mut self, other: Dynamic)

Performs the %= operation. Read more
Source§

impl<'a, 'b> Shl<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the << operator.
Source§

fn shl(self, other: &'a Dynamic) -> Dynamic

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the << operator.
Source§

fn shl(self, other: &'a Dynamic) -> Dynamic

Performs the << operation. Read more
Source§

impl<'a> Shl<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the << operator.
Source§

fn shl(self, other: Dynamic) -> Dynamic

Performs the << operation. Read more
Source§

impl Shl for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the << operator.
Source§

fn shl(self, other: Dynamic) -> Dynamic

Performs the << operation. Read more
Source§

impl<'a> ShlAssign<&'a Dynamic> for Dynamic

Source§

fn shl_assign(&mut self, other: &'a Dynamic)

Performs the <<= operation. Read more
Source§

impl ShlAssign for Dynamic

Source§

fn shl_assign(&mut self, other: Dynamic)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> Shr<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &'a Dynamic) -> Dynamic

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &'a Dynamic) -> Dynamic

Performs the >> operation. Read more
Source§

impl<'a> Shr<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the >> operator.
Source§

fn shr(self, other: Dynamic) -> Dynamic

Performs the >> operation. Read more
Source§

impl Shr for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the >> operator.
Source§

fn shr(self, other: Dynamic) -> Dynamic

Performs the >> operation. Read more
Source§

impl<'a> ShrAssign<&'a Dynamic> for Dynamic

Source§

fn shr_assign(&mut self, other: &'a Dynamic)

Performs the >>= operation. Read more
Source§

impl ShrAssign for Dynamic

Source§

fn shr_assign(&mut self, other: Dynamic)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> Sub<&'a Dynamic> for &'b Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Dynamic) -> Dynamic

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a Dynamic> for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Dynamic) -> Dynamic

Performs the - operation. Read more
Source§

impl<'a> Sub<Dynamic> for &'a Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn sub(self, other: Dynamic) -> Dynamic

Performs the - operation. Read more
Source§

impl Sub for Dynamic

Source§

type Output = Dynamic

The resulting type after applying the - operator.
Source§

fn sub(self, other: Dynamic) -> Dynamic

Performs the - operation. Read more
Source§

impl<'a> SubAssign<&'a Dynamic> for Dynamic

Source§

fn sub_assign(&mut self, other: &'a Dynamic)

Performs the -= operation. Read more
Source§

impl SubAssign for Dynamic

Source§

fn sub_assign(&mut self, other: Dynamic)

Performs the -= operation. Read more
Source§

impl ToString for Dynamic

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl Deref for Dynamic

Source§

type Target = UnverifiedDartHandle

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Copy for Dynamic

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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.