pub struct Header<'a> { /* private fields */ }Implementations§
Source§impl<'a> Header<'a>
impl<'a> Header<'a>
pub fn new(nav: &'a Nav) -> Self
pub fn styles(self, styles: Styles) -> Self
pub fn title(self, title: Option<&'a str>) -> Self
pub fn left(self, left: Option<Fact<'a>>) -> Self
pub fn right(self, right: Option<Fact<'a>>) -> Self
pub fn left_parts(self, parts: &'a [Fact<'a>]) -> Self
pub fn right_parts(self, parts: &'a [Fact<'a>]) -> Self
pub fn left_pairs(self, parts: &'a [(String, Style)]) -> Self
pub fn right_pairs(self, parts: &'a [(String, Style)]) -> Self
pub fn tabs(self, tabs: bool) -> Self
pub fn lit(self, lit: bool) -> Self
pub fn underline(self, underline: bool) -> Self
pub fn facts(self, facts: &'a [Fact<'a>]) -> Self
pub fn facts_pairs(self, facts: &'a [(String, Style)]) -> Self
pub fn facts_rule(self, facts_rule: bool) -> Self
pub fn separator(self, separator: &'a str) -> Self
pub fn crumbs(self, crumbs: bool) -> Self
pub fn closing(self, closing: bool) -> Self
pub fn notice(self, notice: Option<Fact<'a>>) -> Self
pub fn drill(self, drill: Drill) -> Self
pub fn height(&self) -> u16
pub fn hit(&self, area: Rect, column: u16, row: u16) -> Option<Place>
Trait Implementations§
impl<'a> Copy for Header<'a>
impl<'a> Eq for Header<'a>
impl<'a> StructuralPartialEq for Header<'a>
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnsafeUnpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more