pub struct TableRow {
pub cells: Vec<TableCell>,
pub height: RowHeight,
pub is_header: bool,
}Expand description
A row in a table with optional exact/minimum height.
Fields§
§cells: Vec<TableCell>§height: RowHeight§is_header: boolImplementations§
Source§impl TableRow
impl TableRow
pub fn new(cells: Vec<TableCell>) -> Self
Sourcepub fn plain(cells: Vec<String>) -> Self
pub fn plain(cells: Vec<String>) -> Self
Constructs a row from plain strings — convenience for simple tables.
Sourcepub fn height_exact(self, mm: f64) -> Self
pub fn height_exact(self, mm: f64) -> Self
Sets an exact height for this row in mm.
Sourcepub fn height_at_least(self, mm: f64) -> Self
pub fn height_at_least(self, mm: f64) -> Self
Sets a minimum height for this row in mm.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableRow
impl<'de> Deserialize<'de> for TableRow
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
Auto Trait Implementations§
impl Freeze for TableRow
impl RefUnwindSafe for TableRow
impl Send for TableRow
impl Sync for TableRow
impl Unpin for TableRow
impl UnsafeUnpin for TableRow
impl UnwindSafe for TableRow
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.