Enum veloren_common::comp::compass::Distance
source · pub enum Distance {
VeryFar,
Far,
Ahead,
Near,
NextTo,
}
Expand description
Arbitrarily named Distances
Variants§
Implementations§
source§impl Distance
impl Distance
sourcepub fn from_length(length: i32) -> Self
pub fn from_length(length: i32) -> Self
Convert a length to a Distance
pub fn name(&self) -> &'static str
sourcepub fn localize_npc(&self) -> Content
pub fn localize_npc(&self) -> Content
Should be only used with care with npc-tell_monster and npc-tell_site
If you add new usages for it, please consult i18n team.
Auto Trait Implementations§
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
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