Struct typer::FormatChunk
source · pub struct FormatChunk {
pub font_size: usize,
pub line_height: f32,
pub color: ColorRGBA,
pub font: Option<String>,
pub chunks: Vec<FormatChunks>,
}
Fields
font_size: usize
line_height: f32
color: ColorRGBA
font: Option<String>
chunks: Vec<FormatChunks>
Implementations
sourceimpl FormatChunk
impl FormatChunk
pub fn new() -> Self
pub fn set_attribute(&mut self, key: &str, val: &str)
pub fn new_empty(&self) -> Self
pub fn iter(&self) -> FormatChunkIter<'_> ⓘ
pub fn get_render_chunk(&self) -> RenderChunk
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FormatChunk
impl Send for FormatChunk
impl Sync for FormatChunk
impl Unpin for FormatChunk
impl UnwindSafe for FormatChunk
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