pub enum TextFailure {
Error,
Hide,
Clip,
Visible,
}Expand description
Terminal action for an actual text-fit miss, never for font/projection errors.
Variants§
Error
Refuse the complete operation.
Hide
Keep source but do not paint this text.
Clip
Clip paint to the actual text region.
Visible
Permit text overhang subject to the final output boundary.
Trait Implementations§
Source§impl Clone for TextFailure
impl Clone for TextFailure
impl Copy for TextFailure
Source§impl Debug for TextFailure
impl Debug for TextFailure
impl Eq for TextFailure
Source§impl PartialEq for TextFailure
impl PartialEq for TextFailure
impl StructuralPartialEq for TextFailure
Auto Trait Implementations§
impl Forget for TextFailure
impl Freeze for TextFailure
impl Move for TextFailure
impl RefUnwindSafe for TextFailure
impl Send for TextFailure
impl Sync for TextFailure
impl Unpin for TextFailure
impl UnsafeUnpin for TextFailure
impl UnwindSafe for TextFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.