pub enum Precision {
Single,
Double,
}Expand description
The native Box2D world-coordinate precision selected for this crate build.
Variants§
Single
Single-precision world coordinates.
Double
Double-precision world coordinates for large worlds.
Implementations§
Source§impl Precision
impl Precision
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Return the stable manifest spelling for this precision.
Sourcepub const fn pregenerated_bindings_file(self) -> &'static str
pub const fn pregenerated_bindings_file(self) -> &'static str
Return the checked-in bindings artifact selected for this ABI.
Sourcepub const fn wasm_import_module(self) -> &'static str
pub const fn wasm_import_module(self) -> &'static str
Return the stable WASM provider import module for this ABI.
Trait Implementations§
impl Copy for Precision
impl Eq for Precision
Source§impl Ord for Precision
impl Ord for Precision
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Precision
impl PartialOrd for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl Freeze for Precision
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnsafeUnpin for Precision
impl UnwindSafe for Precision
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