pub struct U16CO { /* private fields */ }Implementations§
Source§impl U16CO
impl U16CO
pub const fn try_new(start: u16, end_excl: u16) -> Option<Self>
pub const fn new_unchecked(start: u16, end_excl: u16) -> Self
pub const fn start(self) -> u16
pub const fn end_excl(self) -> u16
pub const fn len(self) -> u16
pub const fn contains(self, x: u16) -> bool
pub const fn iter(self) -> Range<u16>
pub const fn intersects(self, other: Self) -> bool
pub const fn is_adjacent(self, other: Self) -> bool
pub const fn is_contiguous_with(self, other: Self) -> bool
Source§impl U16CO
impl U16CO
pub const fn convex_hull(self, other: Self) -> Self
Source§impl U16CO
impl U16CO
pub const fn difference(self, other: Self) -> ZeroOneTwo<Self>
Source§impl U16CO
impl U16CO
pub const fn symmetric_difference(self, other: Self) -> ZeroOneTwo<Self>
Trait Implementations§
impl Copy for U16CO
impl Eq for U16CO
impl StructuralPartialEq for U16CO
Auto Trait Implementations§
impl Freeze for U16CO
impl RefUnwindSafe for U16CO
impl Send for U16CO
impl Sync for U16CO
impl Unpin for U16CO
impl UnsafeUnpin for U16CO
impl UnwindSafe for U16CO
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