[−][src]Trait coord_2d::StaticAxis
Associated Types
type Other
Required methods
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 try_new_size(
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
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>
size: Size,
value: u32
) -> Result<Size, DimensionTooLargeForSize>
fn try_size_set_in_place(
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
Provided methods
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
Implementors
impl StaticAxis for X
[src]
type Other = Y
fn axis() -> Axis
[src]
fn new_coord(this_axis: i32, other_axis: i32) -> Coord
[src]
fn coord_get(coord: Coord) -> i32
[src]
fn coord_get_mut(coord: &mut Coord) -> &mut i32
[src]
fn coord_with_axis<F: FnMut(i32) -> i32>(coord: Coord, f: F) -> Coord
[src]
fn coord_set(coord: Coord, value: i32) -> Coord
[src]
fn coord_set_in_place(coord: &mut Coord, value: i32)
[src]
fn try_new_size(
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
[src]
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
fn size_get(size: Size) -> u32
[src]
fn size_get_mut(size: &mut Size) -> &mut u32
[src]
fn size_with_axis<F: FnMut(u32) -> u32>(size: Size, f: F) -> Size
[src]
fn try_size_set(
size: Size,
value: u32
) -> Result<Size, DimensionTooLargeForSize>
[src]
size: Size,
value: u32
) -> Result<Size, DimensionTooLargeForSize>
fn try_size_set_in_place(
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
[src]
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
impl StaticAxis for Y
[src]
type Other = X
fn axis() -> Axis
[src]
fn new_coord(this_axis: i32, other_axis: i32) -> Coord
[src]
fn coord_get(coord: Coord) -> i32
[src]
fn coord_get_mut(coord: &mut Coord) -> &mut i32
[src]
fn coord_with_axis<F: FnMut(i32) -> i32>(coord: Coord, f: F) -> Coord
[src]
fn coord_set(coord: Coord, value: i32) -> Coord
[src]
fn coord_set_in_place(coord: &mut Coord, value: i32)
[src]
fn size_get(size: Size) -> u32
[src]
fn size_get_mut(size: &mut Size) -> &mut u32
[src]
fn size_with_axis<F: FnMut(u32) -> u32>(size: Size, f: F) -> Size
[src]
fn try_size_set(
size: Size,
value: u32
) -> Result<Size, DimensionTooLargeForSize>
[src]
size: Size,
value: u32
) -> Result<Size, DimensionTooLargeForSize>
fn try_size_set_in_place(
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
[src]
size: &mut Size,
value: u32
) -> Result<(), DimensionTooLargeForSize>
fn try_new_size(
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
[src]
this_axis: u32,
other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>