Enum ScalarMut

Source
pub enum ScalarMut<'a> {
Show 16 variants usize(&'a mut usize), u8(&'a mut u8), u16(&'a mut u16), u32(&'a mut u32), u64(&'a mut u64), u128(&'a mut u128), i8(&'a mut i8), i16(&'a mut i16), i32(&'a mut i32), i64(&'a mut i64), i128(&'a mut i128), bool(&'a mut bool), char(&'a mut char), f32(&'a mut f32), f64(&'a mut f64), String(&'a mut String),
}
Expand description

An mutable reflected scalar value.

Variants§

§

usize(&'a mut usize)

§

u8(&'a mut u8)

§

u16(&'a mut u16)

§

u32(&'a mut u32)

§

u64(&'a mut u64)

§

u128(&'a mut u128)

§

i8(&'a mut i8)

§

i16(&'a mut i16)

§

i32(&'a mut i32)

§

i64(&'a mut i64)

§

i128(&'a mut i128)

§

bool(&'a mut bool)

§

char(&'a mut char)

§

f32(&'a mut f32)

§

f64(&'a mut f64)

§

String(&'a mut String)

Implementations§

Source§

impl<'a> ScalarMut<'a>

Source

pub fn as_reflect_mut(&mut self) -> &mut dyn Reflect

Source

pub fn as_reflect(&self) -> &dyn Reflect

Trait Implementations§

Source§

impl<'a> Debug for ScalarMut<'a>

Source§

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

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

impl<'a> From<&'a mut String> for ScalarMut<'a>

Source§

fn from(value: &'a mut String) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut bool> for ScalarMut<'a>

Source§

fn from(value: &'a mut bool) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut char> for ScalarMut<'a>

Source§

fn from(value: &'a mut char) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut f32> for ScalarMut<'a>

Source§

fn from(value: &'a mut f32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut f64> for ScalarMut<'a>

Source§

fn from(value: &'a mut f64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut i128> for ScalarMut<'a>

Source§

fn from(value: &'a mut i128) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut i16> for ScalarMut<'a>

Source§

fn from(value: &'a mut i16) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut i32> for ScalarMut<'a>

Source§

fn from(value: &'a mut i32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut i64> for ScalarMut<'a>

Source§

fn from(value: &'a mut i64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut i8> for ScalarMut<'a>

Source§

fn from(value: &'a mut i8) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut u128> for ScalarMut<'a>

Source§

fn from(value: &'a mut u128) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut u16> for ScalarMut<'a>

Source§

fn from(value: &'a mut u16) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut u32> for ScalarMut<'a>

Source§

fn from(value: &'a mut u32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut u64> for ScalarMut<'a>

Source§

fn from(value: &'a mut u64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut u8> for ScalarMut<'a>

Source§

fn from(value: &'a mut u8) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut usize> for ScalarMut<'a>

Source§

fn from(value: &'a mut usize) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for ScalarMut<'a>

§

impl<'a> RefUnwindSafe for ScalarMut<'a>

§

impl<'a> Send for ScalarMut<'a>

§

impl<'a> Sync for ScalarMut<'a>

§

impl<'a> Unpin for ScalarMut<'a>

§

impl<'a> !UnwindSafe for ScalarMut<'a>

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