pub enum SkeletonCellShape {
Single(&'static str),
Stacked(&'static str, &'static str),
AvatarStacked {
avatar: &'static str,
line1: &'static str,
line2: &'static str,
},
}Expand description
表格骨架屏单元格占位形状:不同列的表体内容并非全部是单个占位块,
部分列(如「用户」列)需要头像+两行文字堆叠,因此用枚举描述形状而非
单一 &'static str。
Variants§
Single(&'static str)
单个占位块,SkeletonBox 的 class。
Stacked(&'static str, &'static str)
两行堆叠占位(如标题 + 副标题),依次为两行 SkeletonBox 的 class。
AvatarStacked
圆形头像占位 + 两行堆叠占位(如「用户」列:头像 + 昵称/邮箱)。
Trait Implementations§
Source§impl Clone for SkeletonCellShape
impl Clone for SkeletonCellShape
Source§fn clone(&self) -> SkeletonCellShape
fn clone(&self) -> SkeletonCellShape
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 SkeletonCellShape
impl PartialEq for SkeletonCellShape
impl Copy for SkeletonCellShape
impl StructuralPartialEq for SkeletonCellShape
Auto Trait Implementations§
impl Freeze for SkeletonCellShape
impl RefUnwindSafe for SkeletonCellShape
impl Send for SkeletonCellShape
impl Sync for SkeletonCellShape
impl Unpin for SkeletonCellShape
impl UnsafeUnpin for SkeletonCellShape
impl UnwindSafe for SkeletonCellShape
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.