pub enum DirectionCorner {
Right,
Left,
Top,
Bottom,
TopRight,
TopLeft,
BottomRight,
BottomLeft,
}
Variants§
Implementations§
Source§impl DirectionCorner
impl DirectionCorner
pub fn opposite(&self) -> Self
pub fn combine(&self, other: &Self) -> Option<Self>
pub fn to_point(&self, rect: &LayoutRect) -> LayoutPoint
Trait Implementations§
Source§impl Clone for DirectionCorner
impl Clone for DirectionCorner
Source§fn clone(&self) -> DirectionCorner
fn clone(&self) -> DirectionCorner
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DirectionCorner
impl Debug for DirectionCorner
Source§impl Display for DirectionCorner
impl Display for DirectionCorner
Source§impl Hash for DirectionCorner
impl Hash for DirectionCorner
Source§impl Ord for DirectionCorner
impl Ord for DirectionCorner
Source§fn cmp(&self, other: &DirectionCorner) -> Ordering
fn cmp(&self, other: &DirectionCorner) -> Ordering
1.21.0 · 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 PartialEq for DirectionCorner
impl PartialEq for DirectionCorner
Source§impl PartialOrd for DirectionCorner
impl PartialOrd for DirectionCorner
impl Copy for DirectionCorner
impl Eq for DirectionCorner
impl StructuralPartialEq for DirectionCorner
Auto Trait Implementations§
impl Freeze for DirectionCorner
impl RefUnwindSafe for DirectionCorner
impl Send for DirectionCorner
impl Sync for DirectionCorner
impl Unpin for DirectionCorner
impl UnwindSafe for DirectionCorner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)