pub struct BaselineGrid {
pub enabled: bool,
pub line_height: String,
pub offset: Option<String>,
}Expand description
Baseline grid configuration for vertical rhythm.
Fields§
§enabled: boolWhether baseline grid snapping is enabled.
line_height: StringLine height for the grid (e.g., “14pt”).
offset: Option<String>Vertical offset from the top (e.g., “10pt”).
Implementations§
Trait Implementations§
Source§impl Clone for BaselineGrid
impl Clone for BaselineGrid
Source§fn clone(&self) -> BaselineGrid
fn clone(&self) -> BaselineGrid
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 moreSource§impl Debug for BaselineGrid
impl Debug for BaselineGrid
Source§impl<'de> Deserialize<'de> for BaselineGrid
impl<'de> Deserialize<'de> for BaselineGrid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BaselineGrid
impl PartialEq for BaselineGrid
Source§impl Serialize for BaselineGrid
impl Serialize for BaselineGrid
impl StructuralPartialEq for BaselineGrid
Auto Trait Implementations§
impl Freeze for BaselineGrid
impl RefUnwindSafe for BaselineGrid
impl Send for BaselineGrid
impl Sync for BaselineGrid
impl Unpin for BaselineGrid
impl UnsafeUnpin for BaselineGrid
impl UnwindSafe for BaselineGrid
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