Struct embedded_text::rendering::line::UniformSpaceConfig
source · pub struct UniformSpaceConfig {
pub space_width: u32,
pub starting_spaces: bool,
pub ending_spaces: bool,
}Expand description
Contains the fixed width of a space character
Fields§
§space_width: u32Space width
starting_spaces: boolRender spaces at the start of a line
ending_spaces: boolRender spaces at the end of a line
Trait Implementations§
source§impl Clone for UniformSpaceConfig
impl Clone for UniformSpaceConfig
source§fn clone(&self) -> UniformSpaceConfig
fn clone(&self) -> UniformSpaceConfig
Returns a copy 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 moresource§impl Debug for UniformSpaceConfig
impl Debug for UniformSpaceConfig
source§impl SpaceConfig for UniformSpaceConfig
impl SpaceConfig for UniformSpaceConfig
source§fn starting_spaces(&self) -> bool
fn starting_spaces(&self) -> bool
Render spaces at the start of a line
source§fn ending_spaces(&self) -> bool
fn ending_spaces(&self) -> bool
Render spaces at the end of a line
source§fn peek_next_width(&self, n: u32) -> u32
fn peek_next_width(&self, n: u32) -> u32
Look at the size of next n spaces, without advancing
source§fn next_space_width(&mut self) -> u32
fn next_space_width(&mut self) -> u32
Get the width of the next space and advance
impl Copy for UniformSpaceConfig
Auto Trait Implementations§
impl Freeze for UniformSpaceConfig
impl RefUnwindSafe for UniformSpaceConfig
impl Send for UniformSpaceConfig
impl Sync for UniformSpaceConfig
impl Unpin for UniformSpaceConfig
impl UnwindSafe for UniformSpaceConfig
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)