TeleportRelativeFlags

Struct TeleportRelativeFlags 

Source
pub struct TeleportRelativeFlags(/* private fields */);

Implementations§

Source§

impl TeleportRelativeFlags

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u32) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u32

Convert into bits.

Source

pub const fn x(&self) -> bool

Bits: 0..1

Source

pub const fn with_x(self, value: bool) -> Self

Bits: 0..1

Source

pub fn set_x(&mut self, value: bool)

Bits: 0..1

Source

pub const fn y(&self) -> bool

Bits: 1..2

Source

pub const fn with_y(self, value: bool) -> Self

Bits: 1..2

Source

pub fn set_y(&mut self, value: bool)

Bits: 1..2

Source

pub const fn z(&self) -> bool

Bits: 2..3

Source

pub const fn with_z(self, value: bool) -> Self

Bits: 2..3

Source

pub fn set_z(&mut self, value: bool)

Bits: 2..3

Source

pub const fn y_rot(&self) -> bool

Bits: 3..4

Source

pub const fn with_y_rot(self, value: bool) -> Self

Bits: 3..4

Source

pub fn set_y_rot(&mut self, value: bool)

Bits: 3..4

Source

pub const fn x_rot(&self) -> bool

Bits: 4..5

Source

pub const fn with_x_rot(self, value: bool) -> Self

Bits: 4..5

Source

pub fn set_x_rot(&mut self, value: bool)

Bits: 4..5

Source

pub const fn x_vel(&self) -> bool

Bits: 5..6

Source

pub const fn with_x_vel(self, value: bool) -> Self

Bits: 5..6

Source

pub fn set_x_vel(&mut self, value: bool)

Bits: 5..6

Source

pub const fn y_vel(&self) -> bool

Bits: 6..7

Source

pub const fn with_y_vel(self, value: bool) -> Self

Bits: 6..7

Source

pub fn set_y_vel(&mut self, value: bool)

Bits: 6..7

Source

pub const fn z_vel(&self) -> bool

Bits: 7..8

Source

pub const fn with_z_vel(self, value: bool) -> Self

Bits: 7..8

Source

pub fn set_z_vel(&mut self, value: bool)

Bits: 7..8

Source

pub const fn rot_vel(&self) -> bool

Bits: 8..9

Source

pub const fn with_rot_vel(self, value: bool) -> Self

Bits: 8..9

Source

pub fn set_rot_vel(&mut self, value: bool)

Bits: 8..9

Trait Implementations§

Source§

impl Clone for TeleportRelativeFlags

Source§

fn clone(&self) -> TeleportRelativeFlags

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 TeleportRelativeFlags

Source§

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

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

impl<'a> Decode<'a> for TeleportRelativeFlags

Source§

fn decode(_r: &mut &'a [u8]) -> Result<Self>

Reads this object from the provided byte slice. Read more
Source§

impl Default for TeleportRelativeFlags

Source§

fn default() -> Self

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

impl Encode for TeleportRelativeFlags

Source§

fn encode(&self, _w: impl Write) -> Result<()>

Writes this object to the provided writer. Read more
§

fn encode_slice(slice: &[Self], w: impl Write) -> Result<(), Error>
where Self: Sized,

Like [Encode::encode], except that a whole slice of values is encoded. Read more
Source§

impl From<TeleportRelativeFlags> for u32

Source§

fn from(v: TeleportRelativeFlags) -> u32

Converts to this type from the input type.
Source§

impl From<u32> for TeleportRelativeFlags

Source§

fn from(v: u32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for TeleportRelativeFlags

Source§

fn eq(&self, other: &TeleportRelativeFlags) -> 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 Copy for TeleportRelativeFlags

Source§

impl Eq for TeleportRelativeFlags

Source§

impl StructuralPartialEq for TeleportRelativeFlags

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DynEq for T
where T: Any + Eq,

§

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. 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
§

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

§

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

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

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> FromWorld for T
where T: Default,

§

fn from_world(_world: &mut World) -> T

Creates Self using data from the given [World].
§

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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

§

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> ConditionalSend for T
where T: Send,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,