pub struct StrikethroughStyleRefinement {
pub thickness: Option<Pixels>,
pub color: Option<Hsla>,
}Expand description
重导出样式类型(Style、Display、Position 等)
[#ident] 的可细化版本,详见该文档。
Fields§
§thickness: Option<Pixels>§color: Option<Hsla>Implementations§
Trait Implementations§
Source§impl Clone for StrikethroughStyleRefinement
impl Clone for StrikethroughStyleRefinement
Source§fn clone(&self) -> StrikethroughStyleRefinement
fn clone(&self) -> StrikethroughStyleRefinement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<StrikethroughStyleRefinement> for StrikethroughStyle
impl From<StrikethroughStyleRefinement> for StrikethroughStyle
Source§fn from(value: StrikethroughStyleRefinement) -> Self
fn from(value: StrikethroughStyleRefinement) -> Self
Converts to this type from the input type.
Source§impl Refineable for StrikethroughStyleRefinement
impl Refineable for StrikethroughStyleRefinement
type Refinement = StrikethroughStyleRefinement
Source§fn refine(&mut self, refinement: &Self::Refinement)
fn refine(&mut self, refinement: &Self::Refinement)
将给定细化应用到此实例,就地修改。 Read more
Source§fn refined(self, refinement: Self::Refinement) -> Self
fn refined(self, refinement: Self::Refinement) -> Self
返回应用了细化的新实例,等价于克隆
self 并在其上调用 refineSource§fn is_superset_of(&self, refinement: &Self::Refinement) -> bool
fn is_superset_of(&self, refinement: &Self::Refinement) -> bool
如果此实例包含细化中的所有值,则返回
true Read moreSource§fn subtract(&self, refinement: &Self::Refinement) -> Self::Refinement
fn subtract(&self, refinement: &Self::Refinement) -> Self::Refinement
返回表示此实例与给定细化之间差异的细化 Read more
Auto Trait Implementations§
impl Freeze for StrikethroughStyleRefinement
impl RefUnwindSafe for StrikethroughStyleRefinement
impl Send for StrikethroughStyleRefinement
impl Sync for StrikethroughStyleRefinement
impl Unpin for StrikethroughStyleRefinement
impl UnsafeUnpin for StrikethroughStyleRefinement
impl UnwindSafe for StrikethroughStyleRefinement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().