Skip to main content

LinkBuilder

Trait LinkBuilder 

Source
pub trait LinkBuilder: Sized {
    // Required methods
    fn font(self, f: Font) -> Self;
    fn color(self, c: Color) -> Self;
    fn bold(self) -> Self;
}
Expand description

Builder methods of Link, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn font(self, f: Font) -> Self

The text style (default Font::Body).

Source

fn color(self, c: Color) -> Self

Override the link color (default the platform tint blue).

Source

fn bold(self) -> Self

Render the link text bold.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<DecoratedInner: LinkBuilder + Piece> LinkBuilder for Decorated<DecoratedInner>

Day API ↩ Guides· daybrite.dev