[−][src]Enum rtdlib::types::BackgroundType
Describes the type of a background
Variants
Fill(BackgroundTypeFill)
A filled background
Pattern(BackgroundTypePattern)
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user
Wallpaper(BackgroundTypeWallpaper)
A wallpaper in JPEG format
Implementations
impl BackgroundType
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_fill(&self) -> bool
[src]
pub fn is_pattern(&self) -> bool
[src]
pub fn is_wallpaper(&self) -> bool
[src]
pub fn on_fill<F: FnOnce(&BackgroundTypeFill)>(&self, fnc: F) -> &Self
[src]
pub fn on_pattern<F: FnOnce(&BackgroundTypePattern)>(&self, fnc: F) -> &Self
[src]
pub fn on_wallpaper<F: FnOnce(&BackgroundTypeWallpaper)>(&self, fnc: F) -> &Self
[src]
pub fn as_fill(&self) -> Option<&BackgroundTypeFill>
[src]
pub fn as_pattern(&self) -> Option<&BackgroundTypePattern>
[src]
pub fn as_wallpaper(&self) -> Option<&BackgroundTypeWallpaper>
[src]
pub fn fill<T: AsRef<BackgroundTypeFill>>(t: T) -> Self
[src]
pub fn pattern<T: AsRef<BackgroundTypePattern>>(t: T) -> Self
[src]
pub fn wallpaper<T: AsRef<BackgroundTypeWallpaper>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<BackgroundType> for BackgroundType
[src]
fn as_ref(&self) -> &BackgroundType
[src]
impl Clone for BackgroundType
[src]
fn clone(&self) -> BackgroundType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BackgroundType
[src]
impl Default for BackgroundType
[src]
impl<'de> Deserialize<'de> for BackgroundType
[src]
fn deserialize<D>(deserializer: D) -> Result<BackgroundType, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for BackgroundType
[src]
impl Serialize for BackgroundType
[src]
Auto Trait Implementations
impl RefUnwindSafe for BackgroundType
impl Send for BackgroundType
impl Sync for BackgroundType
impl Unpin for BackgroundType
impl UnwindSafe for BackgroundType
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,