struct TrendBadge {
text: String,
positive: bool,
}Expand description
趋势徽章:positive 决定绿色语义样式(与全站 green 徽章约定一致),
文本自带 ↑ 箭头与颜色形成双编码;中性数据(如 +0)走描边样式。
Fields§
§text: String§positive: boolTrait Implementations§
Source§impl Clone for TrendBadge
impl Clone for TrendBadge
Source§fn clone(&self) -> TrendBadge
fn clone(&self) -> TrendBadge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for TrendBadge
impl PartialEq for TrendBadge
impl StructuralPartialEq for TrendBadge
Auto Trait Implementations§
impl Freeze for TrendBadge
impl RefUnwindSafe for TrendBadge
impl Send for TrendBadge
impl Sync for TrendBadge
impl Unpin for TrendBadge
impl UnsafeUnpin for TrendBadge
impl UnwindSafe for TrendBadge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.