Struct speedy2d::font::FormattedTextBlock [−][src]
Represents a block of text which has been laid out.
Implementations
impl FormattedTextBlock
[src]
#[must_use]pub fn iter_lines(&self) -> Iter<'_, Rc<FormattedTextLine>>
[src]
Iterate over the lines of text in this block.
#[must_use]pub fn width(&self) -> f32
[src]
The width (in pixels) of this text block.
#[must_use]pub fn height(&self) -> f32
[src]
The height (in pixels) of this text block.
Auto Trait Implementations
impl !RefUnwindSafe for FormattedTextBlock
impl !Send for FormattedTextBlock
impl !Sync for FormattedTextBlock
impl Unpin for FormattedTextBlock
impl UnwindSafe for FormattedTextBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,