pub trait StaticAxis: Sealed {
type Other: StaticAxis;
// Required methods
fn axis() -> Axis;
fn new_icoord(this_axis: i32, other_axis: i32) -> ICoord;
fn icoord_get(icoord: ICoord) -> i32;
fn icoord_get_mut(icoord: &mut ICoord) -> &mut i32;
fn icoord_with_axis<F: FnMut(i32) -> i32>(icoord: ICoord, f: F) -> ICoord;
fn icoord_set(icoord: ICoord, value: i32) -> ICoord;
fn icoord_set_in_place(icoord: &mut ICoord, value: i32);
fn ucoord_get(ucoord: UCoord) -> u32;
fn ucoord_with_axis<F: FnMut(u32) -> u32>(ucoord: UCoord, f: F) -> UCoord;
fn ucoord_set(ucoord: UCoord, value: u32) -> UCoord;
fn ucoord_set_in_place(ucoord: &mut UCoord, value: u32);
fn new_ucoord(this_axis: u32, other_axis: u32) -> UCoord;
}Required Associated Types§
type Other: StaticAxis
Required Methods§
fn axis() -> Axis
fn new_icoord(this_axis: i32, other_axis: i32) -> ICoord
fn icoord_get(icoord: ICoord) -> i32
fn icoord_get_mut(icoord: &mut ICoord) -> &mut i32
fn icoord_with_axis<F: FnMut(i32) -> i32>(icoord: ICoord, f: F) -> ICoord
fn icoord_set(icoord: ICoord, value: i32) -> ICoord
fn icoord_set_in_place(icoord: &mut ICoord, value: i32)
fn ucoord_get(ucoord: UCoord) -> u32
fn ucoord_with_axis<F: FnMut(u32) -> u32>(ucoord: UCoord, f: F) -> UCoord
fn ucoord_set(ucoord: UCoord, value: u32) -> UCoord
fn ucoord_set_in_place(ucoord: &mut UCoord, value: u32)
fn new_ucoord(this_axis: u32, other_axis: u32) -> UCoord
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.