pub struct Style<C = Set<ColorPair>>{ /* private fields */ }
Implementations§
Source§impl<C> Style<C>
impl<C> Style<C>
pub fn new_with_colors(colors: C) -> Self
pub fn map_colors<F, D>(self, mapper: F) -> Style<D>
pub fn with_colors<D>(self, colors: D) -> Style<D>
pub fn with_left_margin(self, left_margin: Coord) -> Self
pub fn with_right_margin(self, right_margin: Coord) -> Self
pub fn with_top_margin(self, top_margin: Coord) -> Self
pub fn with_bottom_margin(self, bottom_margin: Coord) -> Self
pub fn with_min_width(self, min_width: Coord) -> Self
pub fn with_max_width(self, max_width: Coord) -> Self
pub fn with_min_height(self, min_height: Coord) -> Self
pub fn with_max_height(self, max_height: Coord) -> Self
pub fn with_align(self, align_numer: Coord, align_denom: Coord) -> Self
pub fn left_margin(&self) -> Coord
pub fn right_margin(&self) -> Coord
pub fn top_margin(&self) -> Coord
pub fn bottom_margin(&self) -> Coord
pub fn min_width(&self) -> Coord
pub fn max_width(&self) -> Coord
pub fn min_height(&self) -> Coord
pub fn max_height(&self) -> Coord
pub fn align_numer(&self) -> Coord
pub fn align_denom(&self) -> Coord
pub fn colors(&self) -> &C
pub fn make_margin_below(&self) -> CoordPair
pub fn make_margin_above(&self) -> CoordPair
pub fn make_min_size(&self) -> CoordPair
pub fn make_max_size(&self) -> CoordPair
pub fn make_size(&self, canvas_size: CoordPair) -> CoordPair
Trait Implementations§
impl<C> Copy for Style<C>
impl<C> Eq for Style<C>
impl<C> StructuralPartialEq for Style<C>
Auto Trait Implementations§
impl<C> Freeze for Style<C>where
C: Freeze,
impl<C> RefUnwindSafe for Style<C>where
C: RefUnwindSafe,
impl<C> Send for Style<C>
impl<C> Sync for Style<C>
impl<C> Unpin for Style<C>where
C: Unpin,
impl<C> UnwindSafe for Style<C>where
C: UnwindSafe,
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