Struct badgeland::Badge[][src]

pub struct Badge<'a, S: BadgeType<'a>> { /* fields omitted */ }

Implementations

impl<'a> Badge<'a, BadgeTypeInit>[src]

pub fn new() -> Self[src]

pub fn subject(&mut self, subject: &'a str) -> &mut Self[src]

pub fn color(&mut self, color: Color) -> &mut Self[src]

pub fn icon(&mut self, icon: Icon<'a>) -> &mut Self[src]

pub fn size(&mut self, size: Size) -> &mut Self[src]

pub fn style(&mut self, style: Style) -> &mut Self[src]

pub fn icon_color(&mut self, c: Color) -> &mut Self[src]

pub fn text(self, text: &'a str) -> Badge<'a, BadgeTypeText<'a>>[src]

pub fn data(self, data: &'a [f32]) -> Badge<'a, BadgeTypeData<'a>>[src]

Trait Implementations

impl<'a, S: Debug + BadgeType<'a>> Debug for Badge<'a, S>[src]

impl<'a, T: BadgeType<'a>> Display for Badge<'a, T>[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for Badge<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for Badge<'a, S> where
    S: Send

impl<'a, S> Sync for Badge<'a, S> where
    S: Sync

impl<'a, S> Unpin for Badge<'a, S> where
    S: Unpin

impl<'a, S> UnwindSafe for Badge<'a, S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Render for T where
    T: Display + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.