Struct kas_theme::MultiThemeBuilder [−][src]
pub struct MultiThemeBuilder<Draw> { /* fields omitted */ }Expand description
Builder for MultiTheme
Construct via MultiTheme::builder.
Implementations
pub fn add<S: ToString, T>(self, name: S, theme: T) -> Self where
Draw: DrawShared,
T: ThemeDst<Draw> + 'static, [src]
pub fn add<S: ToString, T>(self, name: S, theme: T) -> Self where
Draw: DrawShared,
T: ThemeDst<Draw> + 'static, [src]Add a theme
Note: the constraints of this method vary depending on the unsize
feature.
Build
Fails if no themes were added.
Build
Panics if no themes were added.
Auto Trait Implementations
impl<Draw> !RefUnwindSafe for MultiThemeBuilder<Draw>impl<Draw> !Send for MultiThemeBuilder<Draw>impl<Draw> !Sync for MultiThemeBuilder<Draw>impl<Draw> Unpin for MultiThemeBuilder<Draw>impl<Draw> !UnwindSafe for MultiThemeBuilder<Draw>Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> TCast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> TCast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> TCast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>Try convert the ceiling to an integer Read more