Struct kas_theme::MultiThemeBuilder [−][src]
Builder for MultiTheme
Construct via MultiTheme::builder
.
Implementations
impl<Draw> MultiThemeBuilder<Draw>
[src]
pub fn add<S: ToString, T>(self, name: S, theme: T) -> Self where
Draw: DrawShared,
T: ThemeDst<Draw> + 'static,
[src]
Draw: DrawShared,
T: ThemeDst<Draw> + 'static,
Add a theme
Note: the constraints of this method vary depending on the unsize
feature.
pub fn try_build(self) -> Result<MultiTheme<Draw>, ()>
[src]
Build
Fails if no themes were added.
pub fn build(self) -> MultiTheme<Draw>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Cast<T> for S where
T: Conv<S>,
T: Conv<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
T: ConvFloat<S>,
pub fn cast_trunc(self) -> T
pub fn cast_nearest(self) -> T
pub fn cast_floor(self) -> T
pub fn cast_ceil(self) -> T
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
impl<T> Conv<T> for T
impl<'a, T, X> Filter<&'a T> for X where
T: Clone,
X: Filter<T>,
[src]
T: Clone,
X: Filter<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,