pub enum EmptyAddress {}Expand description
Dummy address for when there are no external globals
Trait Implementations§
Source§impl Address for EmptyAddress
impl Address for EmptyAddress
Source§fn vector_field_or_scalar(&self) -> (Self, VectorField)
fn vector_field_or_scalar(&self) -> (Self, VectorField)
For addresses that are a component of a vector, this returns the address of the vector itself along with the field of the
vector that it relates to (x, y, or z). For other fields, this is a no-op.
Source§fn from_u16_typed(_: u16, _: Type) -> Option<Self>
fn from_u16_typed(_: u16, _: Type) -> Option<Self>
Convert a raw offset into the relevant
FieldAddr, given the type. Certain
field offsets are specified to overlap in the progdefs.qc in order to have
quick access to fields of vectors, and this can distinguish between vector foo
and float foo_x.Source§impl Clone for EmptyAddress
impl Clone for EmptyAddress
Source§fn clone(&self) -> EmptyAddress
fn clone(&self) -> EmptyAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for EmptyAddress
impl Hash for EmptyAddress
Source§impl PartialEq for EmptyAddress
impl PartialEq for EmptyAddress
Source§impl VariantArray for EmptyAddress
impl VariantArray for EmptyAddress
impl StructuralPartialEq for EmptyAddress
Auto Trait Implementations§
impl Freeze for EmptyAddress
impl RefUnwindSafe for EmptyAddress
impl Send for EmptyAddress
impl Sync for EmptyAddress
impl Unpin for EmptyAddress
impl UnsafeUnpin for EmptyAddress
impl UnwindSafe for EmptyAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more