Skip to main content

Sizable

Trait Sizable 

Source
pub trait Sizable: Sized {
    // Required method
    fn with_size(self, size: impl Into<Size>) -> Self;

    // Provided methods
    fn xsmall(self) -> Self { ... }
    fn small(self) -> Self { ... }
    fn large(self) -> Self { ... }
}
Expand description

A trait for setting the size of an element. Size::Medium is use by default.

Required Methods§

Source

fn with_size(self, size: impl Into<Size>) -> Self

Set the ui::Size of this element.

Also can receive a ButtonSize to convert to IconSize, Or a Pixels to set a custom size: px(30.)

Provided Methods§

Source

fn xsmall(self) -> Self

Set to Size::XSmall

Source

fn small(self) -> Self

Set to Size::Small

Source

fn large(self) -> Self

Set to Size::Large

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Sizable for Accordion

Source§

impl Sizable for AccordionItem

Source§

impl Sizable for Alert

Source§

impl Sizable for Attachment

Source§

impl Sizable for AttachmentMedia

Source§

impl Sizable for Avatar

Source§

impl Sizable for AvatarGroup

Source§

impl Sizable for Badge

Source§

impl Sizable for Button

Source§

impl Sizable for ButtonGroup

Source§

impl Sizable for Calendar

Source§

impl Sizable for Checkbox

Source§

impl Sizable for ColorPicker

Source§

impl Sizable for DatePicker

Source§

impl Sizable for DescriptionList

Source§

impl Sizable for DropdownButton

Source§

impl Sizable for Form

Source§

impl Sizable for Icon

Source§

impl Sizable for Input

Source§

impl Sizable for NumberInput

Source§

impl Sizable for OtpInput

Source§

impl Sizable for Pagination

Source§

impl Sizable for Progress

Source§

impl Sizable for ProgressCircle

Source§

impl Sizable for Radio

Source§

impl Sizable for Rating

Source§

impl Sizable for SearchableListItemElement

Source§

impl Sizable for Settings

Source§

impl Sizable for Spinner

Source§

impl Sizable for Stepper

Source§

impl Sizable for StepperItem

Source§

impl Sizable for Switch

Source§

impl Sizable for Tab

Source§

impl Sizable for TabBar

Source§

impl Sizable for Table

Source§

impl Sizable for TableBody

Source§

impl Sizable for TableCaption

Source§

impl Sizable for TableCell

Source§

impl Sizable for TableFooter

Source§

impl Sizable for TableHead

Source§

impl Sizable for TableHeader

Source§

impl Sizable for TableRow

Source§

impl Sizable for Tag

Source§

impl Sizable for Toggle

Source§

impl Sizable for ToggleGroup

Source§

impl<D> Sizable for Combobox<D>

Source§

impl<D> Sizable for DataTable<D>
where D: TableDelegate,

Source§

impl<D> Sizable for List<D>
where D: ListDelegate + 'static,

Source§

impl<D> Sizable for Select<D>