pub enum RectContent<T: GetTextLayout> {
Image(usize, usize),
Text(T),
}
Variants§
Image(usize, usize)
Text(T)
Gives access an anonymous struct which, given the text bounds, can be used to calculate the text dimensions
Implementations§
Source§impl<T: GetTextLayout> RectContent<T>
impl<T: GetTextLayout> RectContent<T>
Trait Implementations§
Source§impl<T: Clone + GetTextLayout> Clone for RectContent<T>
impl<T: Clone + GetTextLayout> Clone for RectContent<T>
Source§fn clone(&self) -> RectContent<T>
fn clone(&self) -> RectContent<T>
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<T: Debug + GetTextLayout> Debug for RectContent<T>
impl<T: Debug + GetTextLayout> Debug for RectContent<T>
Source§impl<T: PartialEq + GetTextLayout> PartialEq for RectContent<T>
impl<T: PartialEq + GetTextLayout> PartialEq for RectContent<T>
impl<T: GetTextLayout> StructuralPartialEq for RectContent<T>
Auto Trait Implementations§
impl<T> Freeze for RectContent<T>where
T: Freeze,
impl<T> RefUnwindSafe for RectContent<T>where
T: RefUnwindSafe,
impl<T> Send for RectContent<T>where
T: Send,
impl<T> Sync for RectContent<T>where
T: Sync,
impl<T> Unpin for RectContent<T>where
T: Unpin,
impl<T> UnwindSafe for RectContent<T>where
T: UnwindSafe,
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
)