Enum css_style::text::TextDecoration [−][src]
pub enum TextDecoration {
Decoration {
line: Option<TextDecorationLine>,
color: Option<TextDecorationColor>,
style: Option<TextDecorationStyle>,
},
Initial,
Inherit,
}Variants
Fields of Decoration
line: Option<TextDecorationLine>color: Option<TextDecorationColor>style: Option<TextDecorationStyle>Implementations
impl TextDecoration[src]
pub fn line(self, value: impl Into<TextDecorationLine>) -> Self[src]
pub fn color(self, value: impl Into<TextDecorationColor>) -> Self[src]
pub fn style(self, value: impl Into<TextDecorationStyle>) -> Self[src]
Trait Implementations
impl Clone for TextDecoration[src]
fn clone(&self) -> TextDecoration[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for TextDecoration[src]
impl Debug for TextDecoration[src]
impl Default for TextDecoration[src]
impl Display for TextDecoration[src]
impl From<(Option<TextDecorationLine>, Option<TextDecorationColor>, Option<TextDecorationStyle>)> for TextDecoration[src]
fn from(
original: (Option<TextDecorationLine>, Option<TextDecorationColor>, Option<TextDecorationStyle>)
) -> TextDecoration[src]
original: (Option<TextDecorationLine>, Option<TextDecorationColor>, Option<TextDecorationStyle>)
) -> TextDecoration
impl PartialEq<TextDecoration> for TextDecoration[src]
fn eq(&self, other: &TextDecoration) -> bool[src]
fn ne(&self, other: &TextDecoration) -> bool[src]
impl StructuralPartialEq for TextDecoration[src]
Auto Trait Implementations
impl RefUnwindSafe for TextDecoration
impl Send for TextDecoration
impl Sync for TextDecoration
impl Unpin for TextDecoration
impl UnwindSafe for TextDecoration
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint, [src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D[src]
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<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>, [src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U[src]
pub fn convert_unclamped_into(self) -> U[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>[src]
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.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,