Struct coord_2d::static_axis::Y
source · [−]pub struct Y;
Trait Implementations
sourceimpl StaticAxis for Y
impl StaticAxis for Y
type Other = X
fn axis() -> Axis
fn new_coord(this_axis: i32, other_axis: i32) -> Coord
fn coord_get(coord: Coord) -> i32
fn coord_get_mut(coord: &mut Coord) -> &mut i32
fn coord_with_axis<F: FnMut(i32) -> i32>(coord: Coord, f: F) -> Coord
fn coord_set(coord: Coord, value: i32) -> Coord
fn coord_set_in_place(coord: &mut Coord, value: i32)
fn size_get(size: Size) -> u32
fn size_get_mut(size: &mut Size) -> &mut u32
fn size_with_axis<F: FnMut(u32) -> u32>(size: Size, f: F) -> Size
fn try_size_set(size: Size, value: u32) -> Result<Size, DimensionTooLargeForSize>
fn try_size_set_in_place(
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
fn try_new_size(
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
fn size_set(size: Size, value: u32) -> Size
fn size_set_in_place(size: &mut Size, value: u32)
fn new_size(this_axis: u32, other_axis: u32) -> Size
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more