Struct typer::FormatBlock
source · pub struct FormatBlock {
pub text_align: TextAlignHorizontal,
pub break_word: bool,
pub width: f32,
pub height: f32,
pub x: f32,
pub y: f32,
pub chunk: FormatChunk,
}
Fields
text_align: TextAlignHorizontal
break_word: bool
width: f32
height: f32
x: f32
y: f32
chunk: FormatChunk
Implementations
sourceimpl FormatBlock
impl FormatBlock
pub fn new() -> Self
pub fn set_attribute(&mut self, key: &str, val: &str)
pub fn new_empty(&self) -> Self
pub fn to_render_block<'a>(&self) -> RenderBlock<'a>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FormatBlock
impl Send for FormatBlock
impl Sync for FormatBlock
impl Unpin for FormatBlock
impl UnwindSafe for FormatBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more