Struct LegacyLength

Source
pub struct LegacyLength(pub i32);
Expand description

Behaves like an i32 when connected to Flash or Nitro
Behaves like an i16 when connected to Unity

Tuple Fields§

§0: i32

Methods from Deref<Target = i32>§

1.43.0 · Source

pub const MIN: i32 = -2_147_483_648i32

1.43.0 · Source

pub const MAX: i32 = 2_147_483_647i32

1.53.0 · Source

pub const BITS: u32 = 32u32

Trait Implementations§

Source§

impl Add<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<i16> for LegacyLength

Source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
Source§

impl AddAssign<i32> for LegacyLength

Source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
Source§

impl AddAssign for LegacyLength

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl BitAnd<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: i16) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: i32) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<i16> for LegacyLength

Source§

fn bitand_assign(&mut self, rhs: i16)

Performs the &= operation. Read more
Source§

impl BitAndAssign<i32> for LegacyLength

Source§

fn bitand_assign(&mut self, rhs: i32)

Performs the &= operation. Read more
Source§

impl BitAndAssign for LegacyLength

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: i16) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: i32) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<i16> for LegacyLength

Source§

fn bitor_assign(&mut self, rhs: i16)

Performs the |= operation. Read more
Source§

impl BitOrAssign<i32> for LegacyLength

Source§

fn bitor_assign(&mut self, rhs: i32)

Performs the |= operation. Read more
Source§

impl BitOrAssign for LegacyLength

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: i16) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: i32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<i16> for LegacyLength

Source§

fn bitxor_assign(&mut self, rhs: i16)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<i32> for LegacyLength

Source§

fn bitxor_assign(&mut self, rhs: i32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for LegacyLength

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl Clone for LegacyLength

Source§

fn clone(&self) -> LegacyLength

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 LegacyLength

Source§

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

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

impl Default for LegacyLength

Source§

fn default() -> LegacyLength

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

impl Deref for LegacyLength

Source§

type Target = i32

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for LegacyLength

Source§

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

Mutably dereferences the value.
Source§

impl Display for LegacyLength

Source§

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

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

impl Div<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<i16> for LegacyLength

Source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
Source§

impl DivAssign<i32> for LegacyLength

Source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
Source§

impl DivAssign for LegacyLength

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl Hash for LegacyLength

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 Mul<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<i16> for LegacyLength

Source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
Source§

impl MulAssign<i32> for LegacyLength

Source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
Source§

impl MulAssign for LegacyLength

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl PacketVariable for LegacyLength

Source§

fn from_packet(bytes: Vec<u8>) -> (Self, usize)
where Self: Sized,

Reads a variable from the beginning of the given bytes vector Read more
Source§

fn to_packet(&self) -> Vec<u8>

Source§

impl PartialEq for LegacyLength

Source§

fn eq(&self, other: &LegacyLength) -> 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 Rem<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<i16> for LegacyLength

Source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
Source§

impl RemAssign<i32> for LegacyLength

Source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
Source§

impl RemAssign for LegacyLength

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl Shl<i16> for LegacyLength

Source§

type Output = LegacyLength

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

fn shl(self, rhs: i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i32> for LegacyLength

Source§

type Output = LegacyLength

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

fn shl(self, rhs: i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl for LegacyLength

Source§

type Output = LegacyLength

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

fn shl(self, rhs: Self) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign<i16> for LegacyLength

Source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i32> for LegacyLength

Source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign for LegacyLength

Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl Shr<i16> for LegacyLength

Source§

type Output = LegacyLength

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

fn shr(self, rhs: i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i32> for LegacyLength

Source§

type Output = LegacyLength

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

fn shr(self, rhs: i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr for LegacyLength

Source§

type Output = LegacyLength

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

fn shr(self, rhs: Self) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<i16> for LegacyLength

Source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i32> for LegacyLength

Source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign for LegacyLength

Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl Sub<i16> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i32> for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for LegacyLength

Source§

type Output = LegacyLength

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<i16> for LegacyLength

Source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
Source§

impl SubAssign<i32> for LegacyLength

Source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
Source§

impl SubAssign for LegacyLength

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Copy for LegacyLength

Source§

impl Eq for LegacyLength

Source§

impl StructuralPartialEq for LegacyLength

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