pub struct RatatuiAnchor { /* private fields */ }Expand description
A resolved anchor translated into a caller-owned Ratatui area.
logical preserves the complete signed core rectangle.
destination is the part that survived every core
clip, translated into area, and the source offsets identify where that
visible fragment begins inside the logical rectangle.
Implementations§
Source§impl RatatuiAnchor
impl RatatuiAnchor
pub const fn logical(self) -> AnchoredRect
pub const fn destination(self) -> Rect
pub const fn source_column(self) -> usize
pub const fn source_row(self) -> usize
Trait Implementations§
Source§impl Clone for RatatuiAnchor
impl Clone for RatatuiAnchor
Source§fn clone(&self) -> RatatuiAnchor
fn clone(&self) -> RatatuiAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RatatuiAnchor
impl Debug for RatatuiAnchor
Source§impl PartialEq for RatatuiAnchor
impl PartialEq for RatatuiAnchor
Source§fn eq(&self, other: &RatatuiAnchor) -> bool
fn eq(&self, other: &RatatuiAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RatatuiAnchor
impl Eq for RatatuiAnchor
impl StructuralPartialEq for RatatuiAnchor
Auto Trait Implementations§
impl Freeze for RatatuiAnchor
impl RefUnwindSafe for RatatuiAnchor
impl Send for RatatuiAnchor
impl Sync for RatatuiAnchor
impl Unpin for RatatuiAnchor
impl UnsafeUnpin for RatatuiAnchor
impl UnwindSafe for RatatuiAnchor
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more