Struct zaplib::LocationHash
source · [−]pub struct LocationHash(pub u64);
Expand description
Represents a particular place in the code. Useful e.g. for shaders; see the
documentation of crate::Shader
.
TODO(JP): Having Default
on LocationHash
is not so great, because you
typically want to define it explicitly. Would be good to remove at some
point.
Tuple Fields
0: u64
Implementations
Get a LocationHash
for the given file/line/column. See also location_hash!
.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for LocationHash
impl Send for LocationHash
impl Sync for LocationHash
impl Unpin for LocationHash
impl UnwindSafe for LocationHash
Blanket Implementations
Mutably borrows from an owned value. Read more