pub struct TextMeasureRequest<S> {
pub text: String,
pub style: S,
pub max_width: Option<f32>,
pub wrap: bool,
}Fields§
§text: StringUTF-8 text content
style: SOpaque, resolved text attributes provided by the caller
max_width: Option<f32>Maximum line width (None = unconstrained)
wrap: boolEnable line wrapping
Trait Implementations§
Source§impl<S: Clone> Clone for TextMeasureRequest<S>
impl<S: Clone> Clone for TextMeasureRequest<S>
Source§fn clone(&self) -> TextMeasureRequest<S>
fn clone(&self) -> TextMeasureRequest<S>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<S> Freeze for TextMeasureRequest<S>where
S: Freeze,
impl<S> RefUnwindSafe for TextMeasureRequest<S>where
S: RefUnwindSafe,
impl<S> Send for TextMeasureRequest<S>where
S: Send,
impl<S> Sync for TextMeasureRequest<S>where
S: Sync,
impl<S> Unpin for TextMeasureRequest<S>where
S: Unpin,
impl<S> UnwindSafe for TextMeasureRequest<S>where
S: 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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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