Skip to main content

Facepile

Struct Facepile 

Source
pub struct Facepile { /* private fields */ }
Expand description

An element that displays a collection of (usually) faces stacked horizontally, with the left-most face on top, visually descending from left to right.

Facepiles are used to display a group of people or things, such as a list of participants in a collaboration session.

§Examples

§Default

A default, horizontal facepile.

use gpui::IntoElement;
use ui::{Avatar, Facepile, EXAMPLE_FACES};

let facepile = Facepile::new(
    EXAMPLE_FACES.iter().take(3).map(|&url|
        Avatar::new(url).into_any_element()).collect()
);

Implementations§

Source§

impl Facepile

Source

pub fn empty() -> Self

Creates a new empty facepile.

Source

pub fn new(faces: SmallVec<[AnyElement; 2]>) -> Self

Creates a new facepile with the given faces.

Source

pub fn max_visible(self, max: usize) -> Self

Caps the number of visible faces, replacing the rest with a +N overflow indicator.

Source§

impl Facepile

Source

pub fn p(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the padding of the element. Docs

Source

pub fn p_0(self) -> Self

Sets the padding of the element. Docs

0px

Source

pub fn p_neg_0(self) -> Self

Sets the padding of the element. Docs

0px

Source

pub fn p_0p5(self) -> Self

Sets the padding of the element. Docs

2px (0.125rem)

Source

pub fn p_neg_0p5(self) -> Self

Sets the padding of the element. Docs

2px (0.125rem)

Source

pub fn p_1(self) -> Self

Sets the padding of the element. Docs

4px (0.25rem)

Source

pub fn p_neg_1(self) -> Self

Sets the padding of the element. Docs

4px (0.25rem)

Source

pub fn p_1p5(self) -> Self

Sets the padding of the element. Docs

6px (0.375rem)

Source

pub fn p_neg_1p5(self) -> Self

Sets the padding of the element. Docs

6px (0.375rem)

Source

pub fn p_2(self) -> Self

Sets the padding of the element. Docs

8px (0.5rem)

Source

pub fn p_neg_2(self) -> Self

Sets the padding of the element. Docs

8px (0.5rem)

Source

pub fn p_2p5(self) -> Self

Sets the padding of the element. Docs

10px (0.625rem)

Source

pub fn p_neg_2p5(self) -> Self

Sets the padding of the element. Docs

10px (0.625rem)

Source

pub fn p_3(self) -> Self

Sets the padding of the element. Docs

12px (0.75rem)

Source

pub fn p_neg_3(self) -> Self

Sets the padding of the element. Docs

12px (0.75rem)

Source

pub fn p_3p5(self) -> Self

Sets the padding of the element. Docs

14px (0.875rem)

Source

pub fn p_neg_3p5(self) -> Self

Sets the padding of the element. Docs

14px (0.875rem)

Source

pub fn p_4(self) -> Self

Sets the padding of the element. Docs

16px (1rem)

Source

pub fn p_neg_4(self) -> Self

Sets the padding of the element. Docs

16px (1rem)

Source

pub fn p_5(self) -> Self

Sets the padding of the element. Docs

20px (1.25rem)

Source

pub fn p_neg_5(self) -> Self

Sets the padding of the element. Docs

20px (1.25rem)

Source

pub fn p_6(self) -> Self

Sets the padding of the element. Docs

24px (1.5rem)

Source

pub fn p_neg_6(self) -> Self

Sets the padding of the element. Docs

24px (1.5rem)

Source

pub fn p_7(self) -> Self

Sets the padding of the element. Docs

28px (1.75rem)

Source

pub fn p_neg_7(self) -> Self

Sets the padding of the element. Docs

28px (1.75rem)

Source

pub fn p_8(self) -> Self

Sets the padding of the element. Docs

32px (2rem)

Source

pub fn p_neg_8(self) -> Self

Sets the padding of the element. Docs

32px (2rem)

Source

pub fn p_9(self) -> Self

Sets the padding of the element. Docs

36px (2.25rem)

Source

pub fn p_neg_9(self) -> Self

Sets the padding of the element. Docs

36px (2.25rem)

Source

pub fn p_10(self) -> Self

Sets the padding of the element. Docs

40px (2.5rem)

Source

pub fn p_neg_10(self) -> Self

Sets the padding of the element. Docs

40px (2.5rem)

Source

pub fn p_11(self) -> Self

Sets the padding of the element. Docs

44px (2.75rem)

Source

pub fn p_neg_11(self) -> Self

Sets the padding of the element. Docs

44px (2.75rem)

Source

pub fn p_12(self) -> Self

Sets the padding of the element. Docs

48px (3rem)

Source

pub fn p_neg_12(self) -> Self

Sets the padding of the element. Docs

48px (3rem)

Source

pub fn p_16(self) -> Self

Sets the padding of the element. Docs

64px (4rem)

Source

pub fn p_neg_16(self) -> Self

Sets the padding of the element. Docs

64px (4rem)

Source

pub fn p_20(self) -> Self

Sets the padding of the element. Docs

80px (5rem)

Source

pub fn p_neg_20(self) -> Self

Sets the padding of the element. Docs

80px (5rem)

Source

pub fn p_24(self) -> Self

Sets the padding of the element. Docs

96px (6rem)

Source

pub fn p_neg_24(self) -> Self

Sets the padding of the element. Docs

96px (6rem)

Source

pub fn p_32(self) -> Self

Sets the padding of the element. Docs

128px (8rem)

Source

pub fn p_neg_32(self) -> Self

Sets the padding of the element. Docs

128px (8rem)

Source

pub fn p_40(self) -> Self

Sets the padding of the element. Docs

160px (10rem)

Source

pub fn p_neg_40(self) -> Self

Sets the padding of the element. Docs

160px (10rem)

Source

pub fn p_48(self) -> Self

Sets the padding of the element. Docs

192px (12rem)

Source

pub fn p_neg_48(self) -> Self

Sets the padding of the element. Docs

192px (12rem)

Source

pub fn p_56(self) -> Self

Sets the padding of the element. Docs

224px (14rem)

Source

pub fn p_neg_56(self) -> Self

Sets the padding of the element. Docs

224px (14rem)

Source

pub fn p_64(self) -> Self

Sets the padding of the element. Docs

256px (16rem)

Source

pub fn p_neg_64(self) -> Self

Sets the padding of the element. Docs

256px (16rem)

Source

pub fn p_72(self) -> Self

Sets the padding of the element. Docs

288px (18rem)

Source

pub fn p_neg_72(self) -> Self

Sets the padding of the element. Docs

288px (18rem)

Source

pub fn p_80(self) -> Self

Sets the padding of the element. Docs

320px (20rem)

Source

pub fn p_neg_80(self) -> Self

Sets the padding of the element. Docs

320px (20rem)

Source

pub fn p_96(self) -> Self

Sets the padding of the element. Docs

384px (24rem)

Source

pub fn p_neg_96(self) -> Self

Sets the padding of the element. Docs

384px (24rem)

Source

pub fn p_112(self) -> Self

Sets the padding of the element. Docs

448px (28rem)

Source

pub fn p_neg_112(self) -> Self

Sets the padding of the element. Docs

448px (28rem)

Source

pub fn p_128(self) -> Self

Sets the padding of the element. Docs

512px (32rem)

Source

pub fn p_neg_128(self) -> Self

Sets the padding of the element. Docs

512px (32rem)

Source

pub fn p_px(self) -> Self

Sets the padding of the element. Docs

1px

Source

pub fn p_neg_px(self) -> Self

Sets the padding of the element. Docs

1px

Source

pub fn p_full(self) -> Self

Sets the padding of the element. Docs

100%

Source

pub fn p_neg_full(self) -> Self

Sets the padding of the element. Docs

100%

Source

pub fn p_1_2(self) -> Self

Sets the padding of the element. Docs

50% (1/2)

Source

pub fn p_neg_1_2(self) -> Self

Sets the padding of the element. Docs

50% (1/2)

Source

pub fn p_1_3(self) -> Self

Sets the padding of the element. Docs

33% (1/3)

Source

pub fn p_neg_1_3(self) -> Self

Sets the padding of the element. Docs

33% (1/3)

Source

pub fn p_2_3(self) -> Self

Sets the padding of the element. Docs

66% (2/3)

Source

pub fn p_neg_2_3(self) -> Self

Sets the padding of the element. Docs

66% (2/3)

Source

pub fn p_1_4(self) -> Self

Sets the padding of the element. Docs

25% (1/4)

Source

pub fn p_neg_1_4(self) -> Self

Sets the padding of the element. Docs

25% (1/4)

Source

pub fn p_2_4(self) -> Self

Sets the padding of the element. Docs

50% (2/4)

Source

pub fn p_neg_2_4(self) -> Self

Sets the padding of the element. Docs

50% (2/4)

Source

pub fn p_3_4(self) -> Self

Sets the padding of the element. Docs

75% (3/4)

Source

pub fn p_neg_3_4(self) -> Self

Sets the padding of the element. Docs

75% (3/4)

Source

pub fn p_1_5(self) -> Self

Sets the padding of the element. Docs

20% (1/5)

Source

pub fn p_neg_1_5(self) -> Self

Sets the padding of the element. Docs

20% (1/5)

Source

pub fn p_2_5(self) -> Self

Sets the padding of the element. Docs

40% (2/5)

Source

pub fn p_neg_2_5(self) -> Self

Sets the padding of the element. Docs

40% (2/5)

Source

pub fn p_3_5(self) -> Self

Sets the padding of the element. Docs

60% (3/5)

Source

pub fn p_neg_3_5(self) -> Self

Sets the padding of the element. Docs

60% (3/5)

Source

pub fn p_4_5(self) -> Self

Sets the padding of the element. Docs

80% (4/5)

Source

pub fn p_neg_4_5(self) -> Self

Sets the padding of the element. Docs

80% (4/5)

Source

pub fn p_1_6(self) -> Self

Sets the padding of the element. Docs

16% (1/6)

Source

pub fn p_neg_1_6(self) -> Self

Sets the padding of the element. Docs

16% (1/6)

Source

pub fn p_5_6(self) -> Self

Sets the padding of the element. Docs

80% (5/6)

Source

pub fn p_neg_5_6(self) -> Self

Sets the padding of the element. Docs

80% (5/6)

Source

pub fn p_1_12(self) -> Self

Sets the padding of the element. Docs

8% (1/12)

Source

pub fn p_neg_1_12(self) -> Self

Sets the padding of the element. Docs

8% (1/12)

Source

pub fn pt(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the top padding of the element. Docs

Source

pub fn pt_0(self) -> Self

Sets the top padding of the element. Docs

0px

Source

pub fn pt_neg_0(self) -> Self

Sets the top padding of the element. Docs

0px

Source

pub fn pt_0p5(self) -> Self

Sets the top padding of the element. Docs

2px (0.125rem)

Source

pub fn pt_neg_0p5(self) -> Self

Sets the top padding of the element. Docs

2px (0.125rem)

Source

pub fn pt_1(self) -> Self

Sets the top padding of the element. Docs

4px (0.25rem)

Source

pub fn pt_neg_1(self) -> Self

Sets the top padding of the element. Docs

4px (0.25rem)

Source

pub fn pt_1p5(self) -> Self

Sets the top padding of the element. Docs

6px (0.375rem)

Source

pub fn pt_neg_1p5(self) -> Self

Sets the top padding of the element. Docs

6px (0.375rem)

Source

pub fn pt_2(self) -> Self

Sets the top padding of the element. Docs

8px (0.5rem)

Source

pub fn pt_neg_2(self) -> Self

Sets the top padding of the element. Docs

8px (0.5rem)

Source

pub fn pt_2p5(self) -> Self

Sets the top padding of the element. Docs

10px (0.625rem)

Source

pub fn pt_neg_2p5(self) -> Self

Sets the top padding of the element. Docs

10px (0.625rem)

Source

pub fn pt_3(self) -> Self

Sets the top padding of the element. Docs

12px (0.75rem)

Source

pub fn pt_neg_3(self) -> Self

Sets the top padding of the element. Docs

12px (0.75rem)

Source

pub fn pt_3p5(self) -> Self

Sets the top padding of the element. Docs

14px (0.875rem)

Source

pub fn pt_neg_3p5(self) -> Self

Sets the top padding of the element. Docs

14px (0.875rem)

Source

pub fn pt_4(self) -> Self

Sets the top padding of the element. Docs

16px (1rem)

Source

pub fn pt_neg_4(self) -> Self

Sets the top padding of the element. Docs

16px (1rem)

Source

pub fn pt_5(self) -> Self

Sets the top padding of the element. Docs

20px (1.25rem)

Source

pub fn pt_neg_5(self) -> Self

Sets the top padding of the element. Docs

20px (1.25rem)

Source

pub fn pt_6(self) -> Self

Sets the top padding of the element. Docs

24px (1.5rem)

Source

pub fn pt_neg_6(self) -> Self

Sets the top padding of the element. Docs

24px (1.5rem)

Source

pub fn pt_7(self) -> Self

Sets the top padding of the element. Docs

28px (1.75rem)

Source

pub fn pt_neg_7(self) -> Self

Sets the top padding of the element. Docs

28px (1.75rem)

Source

pub fn pt_8(self) -> Self

Sets the top padding of the element. Docs

32px (2rem)

Source

pub fn pt_neg_8(self) -> Self

Sets the top padding of the element. Docs

32px (2rem)

Source

pub fn pt_9(self) -> Self

Sets the top padding of the element. Docs

36px (2.25rem)

Source

pub fn pt_neg_9(self) -> Self

Sets the top padding of the element. Docs

36px (2.25rem)

Source

pub fn pt_10(self) -> Self

Sets the top padding of the element. Docs

40px (2.5rem)

Source

pub fn pt_neg_10(self) -> Self

Sets the top padding of the element. Docs

40px (2.5rem)

Source

pub fn pt_11(self) -> Self

Sets the top padding of the element. Docs

44px (2.75rem)

Source

pub fn pt_neg_11(self) -> Self

Sets the top padding of the element. Docs

44px (2.75rem)

Source

pub fn pt_12(self) -> Self

Sets the top padding of the element. Docs

48px (3rem)

Source

pub fn pt_neg_12(self) -> Self

Sets the top padding of the element. Docs

48px (3rem)

Source

pub fn pt_16(self) -> Self

Sets the top padding of the element. Docs

64px (4rem)

Source

pub fn pt_neg_16(self) -> Self

Sets the top padding of the element. Docs

64px (4rem)

Source

pub fn pt_20(self) -> Self

Sets the top padding of the element. Docs

80px (5rem)

Source

pub fn pt_neg_20(self) -> Self

Sets the top padding of the element. Docs

80px (5rem)

Source

pub fn pt_24(self) -> Self

Sets the top padding of the element. Docs

96px (6rem)

Source

pub fn pt_neg_24(self) -> Self

Sets the top padding of the element. Docs

96px (6rem)

Source

pub fn pt_32(self) -> Self

Sets the top padding of the element. Docs

128px (8rem)

Source

pub fn pt_neg_32(self) -> Self

Sets the top padding of the element. Docs

128px (8rem)

Source

pub fn pt_40(self) -> Self

Sets the top padding of the element. Docs

160px (10rem)

Source

pub fn pt_neg_40(self) -> Self

Sets the top padding of the element. Docs

160px (10rem)

Source

pub fn pt_48(self) -> Self

Sets the top padding of the element. Docs

192px (12rem)

Source

pub fn pt_neg_48(self) -> Self

Sets the top padding of the element. Docs

192px (12rem)

Source

pub fn pt_56(self) -> Self

Sets the top padding of the element. Docs

224px (14rem)

Source

pub fn pt_neg_56(self) -> Self

Sets the top padding of the element. Docs

224px (14rem)

Source

pub fn pt_64(self) -> Self

Sets the top padding of the element. Docs

256px (16rem)

Source

pub fn pt_neg_64(self) -> Self

Sets the top padding of the element. Docs

256px (16rem)

Source

pub fn pt_72(self) -> Self

Sets the top padding of the element. Docs

288px (18rem)

Source

pub fn pt_neg_72(self) -> Self

Sets the top padding of the element. Docs

288px (18rem)

Source

pub fn pt_80(self) -> Self

Sets the top padding of the element. Docs

320px (20rem)

Source

pub fn pt_neg_80(self) -> Self

Sets the top padding of the element. Docs

320px (20rem)

Source

pub fn pt_96(self) -> Self

Sets the top padding of the element. Docs

384px (24rem)

Source

pub fn pt_neg_96(self) -> Self

Sets the top padding of the element. Docs

384px (24rem)

Source

pub fn pt_112(self) -> Self

Sets the top padding of the element. Docs

448px (28rem)

Source

pub fn pt_neg_112(self) -> Self

Sets the top padding of the element. Docs

448px (28rem)

Source

pub fn pt_128(self) -> Self

Sets the top padding of the element. Docs

512px (32rem)

Source

pub fn pt_neg_128(self) -> Self

Sets the top padding of the element. Docs

512px (32rem)

Source

pub fn pt_px(self) -> Self

Sets the top padding of the element. Docs

1px

Source

pub fn pt_neg_px(self) -> Self

Sets the top padding of the element. Docs

1px

Source

pub fn pt_full(self) -> Self

Sets the top padding of the element. Docs

100%

Source

pub fn pt_neg_full(self) -> Self

Sets the top padding of the element. Docs

100%

Source

pub fn pt_1_2(self) -> Self

Sets the top padding of the element. Docs

50% (1/2)

Source

pub fn pt_neg_1_2(self) -> Self

Sets the top padding of the element. Docs

50% (1/2)

Source

pub fn pt_1_3(self) -> Self

Sets the top padding of the element. Docs

33% (1/3)

Source

pub fn pt_neg_1_3(self) -> Self

Sets the top padding of the element. Docs

33% (1/3)

Source

pub fn pt_2_3(self) -> Self

Sets the top padding of the element. Docs

66% (2/3)

Source

pub fn pt_neg_2_3(self) -> Self

Sets the top padding of the element. Docs

66% (2/3)

Source

pub fn pt_1_4(self) -> Self

Sets the top padding of the element. Docs

25% (1/4)

Source

pub fn pt_neg_1_4(self) -> Self

Sets the top padding of the element. Docs

25% (1/4)

Source

pub fn pt_2_4(self) -> Self

Sets the top padding of the element. Docs

50% (2/4)

Source

pub fn pt_neg_2_4(self) -> Self

Sets the top padding of the element. Docs

50% (2/4)

Source

pub fn pt_3_4(self) -> Self

Sets the top padding of the element. Docs

75% (3/4)

Source

pub fn pt_neg_3_4(self) -> Self

Sets the top padding of the element. Docs

75% (3/4)

Source

pub fn pt_1_5(self) -> Self

Sets the top padding of the element. Docs

20% (1/5)

Source

pub fn pt_neg_1_5(self) -> Self

Sets the top padding of the element. Docs

20% (1/5)

Source

pub fn pt_2_5(self) -> Self

Sets the top padding of the element. Docs

40% (2/5)

Source

pub fn pt_neg_2_5(self) -> Self

Sets the top padding of the element. Docs

40% (2/5)

Source

pub fn pt_3_5(self) -> Self

Sets the top padding of the element. Docs

60% (3/5)

Source

pub fn pt_neg_3_5(self) -> Self

Sets the top padding of the element. Docs

60% (3/5)

Source

pub fn pt_4_5(self) -> Self

Sets the top padding of the element. Docs

80% (4/5)

Source

pub fn pt_neg_4_5(self) -> Self

Sets the top padding of the element. Docs

80% (4/5)

Source

pub fn pt_1_6(self) -> Self

Sets the top padding of the element. Docs

16% (1/6)

Source

pub fn pt_neg_1_6(self) -> Self

Sets the top padding of the element. Docs

16% (1/6)

Source

pub fn pt_5_6(self) -> Self

Sets the top padding of the element. Docs

80% (5/6)

Source

pub fn pt_neg_5_6(self) -> Self

Sets the top padding of the element. Docs

80% (5/6)

Source

pub fn pt_1_12(self) -> Self

Sets the top padding of the element. Docs

8% (1/12)

Source

pub fn pt_neg_1_12(self) -> Self

Sets the top padding of the element. Docs

8% (1/12)

Source

pub fn pb(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the bottom padding of the element. Docs

Source

pub fn pb_0(self) -> Self

Sets the bottom padding of the element. Docs

0px

Source

pub fn pb_neg_0(self) -> Self

Sets the bottom padding of the element. Docs

0px

Source

pub fn pb_0p5(self) -> Self

Sets the bottom padding of the element. Docs

2px (0.125rem)

Source

pub fn pb_neg_0p5(self) -> Self

Sets the bottom padding of the element. Docs

2px (0.125rem)

Source

pub fn pb_1(self) -> Self

Sets the bottom padding of the element. Docs

4px (0.25rem)

Source

pub fn pb_neg_1(self) -> Self

Sets the bottom padding of the element. Docs

4px (0.25rem)

Source

pub fn pb_1p5(self) -> Self

Sets the bottom padding of the element. Docs

6px (0.375rem)

Source

pub fn pb_neg_1p5(self) -> Self

Sets the bottom padding of the element. Docs

6px (0.375rem)

Source

pub fn pb_2(self) -> Self

Sets the bottom padding of the element. Docs

8px (0.5rem)

Source

pub fn pb_neg_2(self) -> Self

Sets the bottom padding of the element. Docs

8px (0.5rem)

Source

pub fn pb_2p5(self) -> Self

Sets the bottom padding of the element. Docs

10px (0.625rem)

Source

pub fn pb_neg_2p5(self) -> Self

Sets the bottom padding of the element. Docs

10px (0.625rem)

Source

pub fn pb_3(self) -> Self

Sets the bottom padding of the element. Docs

12px (0.75rem)

Source

pub fn pb_neg_3(self) -> Self

Sets the bottom padding of the element. Docs

12px (0.75rem)

Source

pub fn pb_3p5(self) -> Self

Sets the bottom padding of the element. Docs

14px (0.875rem)

Source

pub fn pb_neg_3p5(self) -> Self

Sets the bottom padding of the element. Docs

14px (0.875rem)

Source

pub fn pb_4(self) -> Self

Sets the bottom padding of the element. Docs

16px (1rem)

Source

pub fn pb_neg_4(self) -> Self

Sets the bottom padding of the element. Docs

16px (1rem)

Source

pub fn pb_5(self) -> Self

Sets the bottom padding of the element. Docs

20px (1.25rem)

Source

pub fn pb_neg_5(self) -> Self

Sets the bottom padding of the element. Docs

20px (1.25rem)

Source

pub fn pb_6(self) -> Self

Sets the bottom padding of the element. Docs

24px (1.5rem)

Source

pub fn pb_neg_6(self) -> Self

Sets the bottom padding of the element. Docs

24px (1.5rem)

Source

pub fn pb_7(self) -> Self

Sets the bottom padding of the element. Docs

28px (1.75rem)

Source

pub fn pb_neg_7(self) -> Self

Sets the bottom padding of the element. Docs

28px (1.75rem)

Source

pub fn pb_8(self) -> Self

Sets the bottom padding of the element. Docs

32px (2rem)

Source

pub fn pb_neg_8(self) -> Self

Sets the bottom padding of the element. Docs

32px (2rem)

Source

pub fn pb_9(self) -> Self

Sets the bottom padding of the element. Docs

36px (2.25rem)

Source

pub fn pb_neg_9(self) -> Self

Sets the bottom padding of the element. Docs

36px (2.25rem)

Source

pub fn pb_10(self) -> Self

Sets the bottom padding of the element. Docs

40px (2.5rem)

Source

pub fn pb_neg_10(self) -> Self

Sets the bottom padding of the element. Docs

40px (2.5rem)

Source

pub fn pb_11(self) -> Self

Sets the bottom padding of the element. Docs

44px (2.75rem)

Source

pub fn pb_neg_11(self) -> Self

Sets the bottom padding of the element. Docs

44px (2.75rem)

Source

pub fn pb_12(self) -> Self

Sets the bottom padding of the element. Docs

48px (3rem)

Source

pub fn pb_neg_12(self) -> Self

Sets the bottom padding of the element. Docs

48px (3rem)

Source

pub fn pb_16(self) -> Self

Sets the bottom padding of the element. Docs

64px (4rem)

Source

pub fn pb_neg_16(self) -> Self

Sets the bottom padding of the element. Docs

64px (4rem)

Source

pub fn pb_20(self) -> Self

Sets the bottom padding of the element. Docs

80px (5rem)

Source

pub fn pb_neg_20(self) -> Self

Sets the bottom padding of the element. Docs

80px (5rem)

Source

pub fn pb_24(self) -> Self

Sets the bottom padding of the element. Docs

96px (6rem)

Source

pub fn pb_neg_24(self) -> Self

Sets the bottom padding of the element. Docs

96px (6rem)

Source

pub fn pb_32(self) -> Self

Sets the bottom padding of the element. Docs

128px (8rem)

Source

pub fn pb_neg_32(self) -> Self

Sets the bottom padding of the element. Docs

128px (8rem)

Source

pub fn pb_40(self) -> Self

Sets the bottom padding of the element. Docs

160px (10rem)

Source

pub fn pb_neg_40(self) -> Self

Sets the bottom padding of the element. Docs

160px (10rem)

Source

pub fn pb_48(self) -> Self

Sets the bottom padding of the element. Docs

192px (12rem)

Source

pub fn pb_neg_48(self) -> Self

Sets the bottom padding of the element. Docs

192px (12rem)

Source

pub fn pb_56(self) -> Self

Sets the bottom padding of the element. Docs

224px (14rem)

Source

pub fn pb_neg_56(self) -> Self

Sets the bottom padding of the element. Docs

224px (14rem)

Source

pub fn pb_64(self) -> Self

Sets the bottom padding of the element. Docs

256px (16rem)

Source

pub fn pb_neg_64(self) -> Self

Sets the bottom padding of the element. Docs

256px (16rem)

Source

pub fn pb_72(self) -> Self

Sets the bottom padding of the element. Docs

288px (18rem)

Source

pub fn pb_neg_72(self) -> Self

Sets the bottom padding of the element. Docs

288px (18rem)

Source

pub fn pb_80(self) -> Self

Sets the bottom padding of the element. Docs

320px (20rem)

Source

pub fn pb_neg_80(self) -> Self

Sets the bottom padding of the element. Docs

320px (20rem)

Source

pub fn pb_96(self) -> Self

Sets the bottom padding of the element. Docs

384px (24rem)

Source

pub fn pb_neg_96(self) -> Self

Sets the bottom padding of the element. Docs

384px (24rem)

Source

pub fn pb_112(self) -> Self

Sets the bottom padding of the element. Docs

448px (28rem)

Source

pub fn pb_neg_112(self) -> Self

Sets the bottom padding of the element. Docs

448px (28rem)

Source

pub fn pb_128(self) -> Self

Sets the bottom padding of the element. Docs

512px (32rem)

Source

pub fn pb_neg_128(self) -> Self

Sets the bottom padding of the element. Docs

512px (32rem)

Source

pub fn pb_px(self) -> Self

Sets the bottom padding of the element. Docs

1px

Source

pub fn pb_neg_px(self) -> Self

Sets the bottom padding of the element. Docs

1px

Source

pub fn pb_full(self) -> Self

Sets the bottom padding of the element. Docs

100%

Source

pub fn pb_neg_full(self) -> Self

Sets the bottom padding of the element. Docs

100%

Source

pub fn pb_1_2(self) -> Self

Sets the bottom padding of the element. Docs

50% (1/2)

Source

pub fn pb_neg_1_2(self) -> Self

Sets the bottom padding of the element. Docs

50% (1/2)

Source

pub fn pb_1_3(self) -> Self

Sets the bottom padding of the element. Docs

33% (1/3)

Source

pub fn pb_neg_1_3(self) -> Self

Sets the bottom padding of the element. Docs

33% (1/3)

Source

pub fn pb_2_3(self) -> Self

Sets the bottom padding of the element. Docs

66% (2/3)

Source

pub fn pb_neg_2_3(self) -> Self

Sets the bottom padding of the element. Docs

66% (2/3)

Source

pub fn pb_1_4(self) -> Self

Sets the bottom padding of the element. Docs

25% (1/4)

Source

pub fn pb_neg_1_4(self) -> Self

Sets the bottom padding of the element. Docs

25% (1/4)

Source

pub fn pb_2_4(self) -> Self

Sets the bottom padding of the element. Docs

50% (2/4)

Source

pub fn pb_neg_2_4(self) -> Self

Sets the bottom padding of the element. Docs

50% (2/4)

Source

pub fn pb_3_4(self) -> Self

Sets the bottom padding of the element. Docs

75% (3/4)

Source

pub fn pb_neg_3_4(self) -> Self

Sets the bottom padding of the element. Docs

75% (3/4)

Source

pub fn pb_1_5(self) -> Self

Sets the bottom padding of the element. Docs

20% (1/5)

Source

pub fn pb_neg_1_5(self) -> Self

Sets the bottom padding of the element. Docs

20% (1/5)

Source

pub fn pb_2_5(self) -> Self

Sets the bottom padding of the element. Docs

40% (2/5)

Source

pub fn pb_neg_2_5(self) -> Self

Sets the bottom padding of the element. Docs

40% (2/5)

Source

pub fn pb_3_5(self) -> Self

Sets the bottom padding of the element. Docs

60% (3/5)

Source

pub fn pb_neg_3_5(self) -> Self

Sets the bottom padding of the element. Docs

60% (3/5)

Source

pub fn pb_4_5(self) -> Self

Sets the bottom padding of the element. Docs

80% (4/5)

Source

pub fn pb_neg_4_5(self) -> Self

Sets the bottom padding of the element. Docs

80% (4/5)

Source

pub fn pb_1_6(self) -> Self

Sets the bottom padding of the element. Docs

16% (1/6)

Source

pub fn pb_neg_1_6(self) -> Self

Sets the bottom padding of the element. Docs

16% (1/6)

Source

pub fn pb_5_6(self) -> Self

Sets the bottom padding of the element. Docs

80% (5/6)

Source

pub fn pb_neg_5_6(self) -> Self

Sets the bottom padding of the element. Docs

80% (5/6)

Source

pub fn pb_1_12(self) -> Self

Sets the bottom padding of the element. Docs

8% (1/12)

Source

pub fn pb_neg_1_12(self) -> Self

Sets the bottom padding of the element. Docs

8% (1/12)

Source

pub fn px(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the horizontal padding of the element. Docs

Source

pub fn px_0(self) -> Self

Sets the horizontal padding of the element. Docs

0px

Source

pub fn px_neg_0(self) -> Self

Sets the horizontal padding of the element. Docs

0px

Source

pub fn px_0p5(self) -> Self

Sets the horizontal padding of the element. Docs

2px (0.125rem)

Source

pub fn px_neg_0p5(self) -> Self

Sets the horizontal padding of the element. Docs

2px (0.125rem)

Source

pub fn px_1(self) -> Self

Sets the horizontal padding of the element. Docs

4px (0.25rem)

Source

pub fn px_neg_1(self) -> Self

Sets the horizontal padding of the element. Docs

4px (0.25rem)

Source

pub fn px_1p5(self) -> Self

Sets the horizontal padding of the element. Docs

6px (0.375rem)

Source

pub fn px_neg_1p5(self) -> Self

Sets the horizontal padding of the element. Docs

6px (0.375rem)

Source

pub fn px_2(self) -> Self

Sets the horizontal padding of the element. Docs

8px (0.5rem)

Source

pub fn px_neg_2(self) -> Self

Sets the horizontal padding of the element. Docs

8px (0.5rem)

Source

pub fn px_2p5(self) -> Self

Sets the horizontal padding of the element. Docs

10px (0.625rem)

Source

pub fn px_neg_2p5(self) -> Self

Sets the horizontal padding of the element. Docs

10px (0.625rem)

Source

pub fn px_3(self) -> Self

Sets the horizontal padding of the element. Docs

12px (0.75rem)

Source

pub fn px_neg_3(self) -> Self

Sets the horizontal padding of the element. Docs

12px (0.75rem)

Source

pub fn px_3p5(self) -> Self

Sets the horizontal padding of the element. Docs

14px (0.875rem)

Source

pub fn px_neg_3p5(self) -> Self

Sets the horizontal padding of the element. Docs

14px (0.875rem)

Source

pub fn px_4(self) -> Self

Sets the horizontal padding of the element. Docs

16px (1rem)

Source

pub fn px_neg_4(self) -> Self

Sets the horizontal padding of the element. Docs

16px (1rem)

Source

pub fn px_5(self) -> Self

Sets the horizontal padding of the element. Docs

20px (1.25rem)

Source

pub fn px_neg_5(self) -> Self

Sets the horizontal padding of the element. Docs

20px (1.25rem)

Source

pub fn px_6(self) -> Self

Sets the horizontal padding of the element. Docs

24px (1.5rem)

Source

pub fn px_neg_6(self) -> Self

Sets the horizontal padding of the element. Docs

24px (1.5rem)

Source

pub fn px_7(self) -> Self

Sets the horizontal padding of the element. Docs

28px (1.75rem)

Source

pub fn px_neg_7(self) -> Self

Sets the horizontal padding of the element. Docs

28px (1.75rem)

Source

pub fn px_8(self) -> Self

Sets the horizontal padding of the element. Docs

32px (2rem)

Source

pub fn px_neg_8(self) -> Self

Sets the horizontal padding of the element. Docs

32px (2rem)

Source

pub fn px_9(self) -> Self

Sets the horizontal padding of the element. Docs

36px (2.25rem)

Source

pub fn px_neg_9(self) -> Self

Sets the horizontal padding of the element. Docs

36px (2.25rem)

Source

pub fn px_10(self) -> Self

Sets the horizontal padding of the element. Docs

40px (2.5rem)

Source

pub fn px_neg_10(self) -> Self

Sets the horizontal padding of the element. Docs

40px (2.5rem)

Source

pub fn px_11(self) -> Self

Sets the horizontal padding of the element. Docs

44px (2.75rem)

Source

pub fn px_neg_11(self) -> Self

Sets the horizontal padding of the element. Docs

44px (2.75rem)

Source

pub fn px_12(self) -> Self

Sets the horizontal padding of the element. Docs

48px (3rem)

Source

pub fn px_neg_12(self) -> Self

Sets the horizontal padding of the element. Docs

48px (3rem)

Source

pub fn px_16(self) -> Self

Sets the horizontal padding of the element. Docs

64px (4rem)

Source

pub fn px_neg_16(self) -> Self

Sets the horizontal padding of the element. Docs

64px (4rem)

Source

pub fn px_20(self) -> Self

Sets the horizontal padding of the element. Docs

80px (5rem)

Source

pub fn px_neg_20(self) -> Self

Sets the horizontal padding of the element. Docs

80px (5rem)

Source

pub fn px_24(self) -> Self

Sets the horizontal padding of the element. Docs

96px (6rem)

Source

pub fn px_neg_24(self) -> Self

Sets the horizontal padding of the element. Docs

96px (6rem)

Source

pub fn px_32(self) -> Self

Sets the horizontal padding of the element. Docs

128px (8rem)

Source

pub fn px_neg_32(self) -> Self

Sets the horizontal padding of the element. Docs

128px (8rem)

Source

pub fn px_40(self) -> Self

Sets the horizontal padding of the element. Docs

160px (10rem)

Source

pub fn px_neg_40(self) -> Self

Sets the horizontal padding of the element. Docs

160px (10rem)

Source

pub fn px_48(self) -> Self

Sets the horizontal padding of the element. Docs

192px (12rem)

Source

pub fn px_neg_48(self) -> Self

Sets the horizontal padding of the element. Docs

192px (12rem)

Source

pub fn px_56(self) -> Self

Sets the horizontal padding of the element. Docs

224px (14rem)

Source

pub fn px_neg_56(self) -> Self

Sets the horizontal padding of the element. Docs

224px (14rem)

Source

pub fn px_64(self) -> Self

Sets the horizontal padding of the element. Docs

256px (16rem)

Source

pub fn px_neg_64(self) -> Self

Sets the horizontal padding of the element. Docs

256px (16rem)

Source

pub fn px_72(self) -> Self

Sets the horizontal padding of the element. Docs

288px (18rem)

Source

pub fn px_neg_72(self) -> Self

Sets the horizontal padding of the element. Docs

288px (18rem)

Source

pub fn px_80(self) -> Self

Sets the horizontal padding of the element. Docs

320px (20rem)

Source

pub fn px_neg_80(self) -> Self

Sets the horizontal padding of the element. Docs

320px (20rem)

Source

pub fn px_96(self) -> Self

Sets the horizontal padding of the element. Docs

384px (24rem)

Source

pub fn px_neg_96(self) -> Self

Sets the horizontal padding of the element. Docs

384px (24rem)

Source

pub fn px_112(self) -> Self

Sets the horizontal padding of the element. Docs

448px (28rem)

Source

pub fn px_neg_112(self) -> Self

Sets the horizontal padding of the element. Docs

448px (28rem)

Source

pub fn px_128(self) -> Self

Sets the horizontal padding of the element. Docs

512px (32rem)

Source

pub fn px_neg_128(self) -> Self

Sets the horizontal padding of the element. Docs

512px (32rem)

Source

pub fn px_px(self) -> Self

Sets the horizontal padding of the element. Docs

1px

Source

pub fn px_neg_px(self) -> Self

Sets the horizontal padding of the element. Docs

1px

Source

pub fn px_full(self) -> Self

Sets the horizontal padding of the element. Docs

100%

Source

pub fn px_neg_full(self) -> Self

Sets the horizontal padding of the element. Docs

100%

Source

pub fn px_1_2(self) -> Self

Sets the horizontal padding of the element. Docs

50% (1/2)

Source

pub fn px_neg_1_2(self) -> Self

Sets the horizontal padding of the element. Docs

50% (1/2)

Source

pub fn px_1_3(self) -> Self

Sets the horizontal padding of the element. Docs

33% (1/3)

Source

pub fn px_neg_1_3(self) -> Self

Sets the horizontal padding of the element. Docs

33% (1/3)

Source

pub fn px_2_3(self) -> Self

Sets the horizontal padding of the element. Docs

66% (2/3)

Source

pub fn px_neg_2_3(self) -> Self

Sets the horizontal padding of the element. Docs

66% (2/3)

Source

pub fn px_1_4(self) -> Self

Sets the horizontal padding of the element. Docs

25% (1/4)

Source

pub fn px_neg_1_4(self) -> Self

Sets the horizontal padding of the element. Docs

25% (1/4)

Source

pub fn px_2_4(self) -> Self

Sets the horizontal padding of the element. Docs

50% (2/4)

Source

pub fn px_neg_2_4(self) -> Self

Sets the horizontal padding of the element. Docs

50% (2/4)

Source

pub fn px_3_4(self) -> Self

Sets the horizontal padding of the element. Docs

75% (3/4)

Source

pub fn px_neg_3_4(self) -> Self

Sets the horizontal padding of the element. Docs

75% (3/4)

Source

pub fn px_1_5(self) -> Self

Sets the horizontal padding of the element. Docs

20% (1/5)

Source

pub fn px_neg_1_5(self) -> Self

Sets the horizontal padding of the element. Docs

20% (1/5)

Source

pub fn px_2_5(self) -> Self

Sets the horizontal padding of the element. Docs

40% (2/5)

Source

pub fn px_neg_2_5(self) -> Self

Sets the horizontal padding of the element. Docs

40% (2/5)

Source

pub fn px_3_5(self) -> Self

Sets the horizontal padding of the element. Docs

60% (3/5)

Source

pub fn px_neg_3_5(self) -> Self

Sets the horizontal padding of the element. Docs

60% (3/5)

Source

pub fn px_4_5(self) -> Self

Sets the horizontal padding of the element. Docs

80% (4/5)

Source

pub fn px_neg_4_5(self) -> Self

Sets the horizontal padding of the element. Docs

80% (4/5)

Source

pub fn px_1_6(self) -> Self

Sets the horizontal padding of the element. Docs

16% (1/6)

Source

pub fn px_neg_1_6(self) -> Self

Sets the horizontal padding of the element. Docs

16% (1/6)

Source

pub fn px_5_6(self) -> Self

Sets the horizontal padding of the element. Docs

80% (5/6)

Source

pub fn px_neg_5_6(self) -> Self

Sets the horizontal padding of the element. Docs

80% (5/6)

Source

pub fn px_1_12(self) -> Self

Sets the horizontal padding of the element. Docs

8% (1/12)

Source

pub fn px_neg_1_12(self) -> Self

Sets the horizontal padding of the element. Docs

8% (1/12)

Source

pub fn py(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the vertical padding of the element. Docs

Source

pub fn py_0(self) -> Self

Sets the vertical padding of the element. Docs

0px

Source

pub fn py_neg_0(self) -> Self

Sets the vertical padding of the element. Docs

0px

Source

pub fn py_0p5(self) -> Self

Sets the vertical padding of the element. Docs

2px (0.125rem)

Source

pub fn py_neg_0p5(self) -> Self

Sets the vertical padding of the element. Docs

2px (0.125rem)

Source

pub fn py_1(self) -> Self

Sets the vertical padding of the element. Docs

4px (0.25rem)

Source

pub fn py_neg_1(self) -> Self

Sets the vertical padding of the element. Docs

4px (0.25rem)

Source

pub fn py_1p5(self) -> Self

Sets the vertical padding of the element. Docs

6px (0.375rem)

Source

pub fn py_neg_1p5(self) -> Self

Sets the vertical padding of the element. Docs

6px (0.375rem)

Source

pub fn py_2(self) -> Self

Sets the vertical padding of the element. Docs

8px (0.5rem)

Source

pub fn py_neg_2(self) -> Self

Sets the vertical padding of the element. Docs

8px (0.5rem)

Source

pub fn py_2p5(self) -> Self

Sets the vertical padding of the element. Docs

10px (0.625rem)

Source

pub fn py_neg_2p5(self) -> Self

Sets the vertical padding of the element. Docs

10px (0.625rem)

Source

pub fn py_3(self) -> Self

Sets the vertical padding of the element. Docs

12px (0.75rem)

Source

pub fn py_neg_3(self) -> Self

Sets the vertical padding of the element. Docs

12px (0.75rem)

Source

pub fn py_3p5(self) -> Self

Sets the vertical padding of the element. Docs

14px (0.875rem)

Source

pub fn py_neg_3p5(self) -> Self

Sets the vertical padding of the element. Docs

14px (0.875rem)

Source

pub fn py_4(self) -> Self

Sets the vertical padding of the element. Docs

16px (1rem)

Source

pub fn py_neg_4(self) -> Self

Sets the vertical padding of the element. Docs

16px (1rem)

Source

pub fn py_5(self) -> Self

Sets the vertical padding of the element. Docs

20px (1.25rem)

Source

pub fn py_neg_5(self) -> Self

Sets the vertical padding of the element. Docs

20px (1.25rem)

Source

pub fn py_6(self) -> Self

Sets the vertical padding of the element. Docs

24px (1.5rem)

Source

pub fn py_neg_6(self) -> Self

Sets the vertical padding of the element. Docs

24px (1.5rem)

Source

pub fn py_7(self) -> Self

Sets the vertical padding of the element. Docs

28px (1.75rem)

Source

pub fn py_neg_7(self) -> Self

Sets the vertical padding of the element. Docs

28px (1.75rem)

Source

pub fn py_8(self) -> Self

Sets the vertical padding of the element. Docs

32px (2rem)

Source

pub fn py_neg_8(self) -> Self

Sets the vertical padding of the element. Docs

32px (2rem)

Source

pub fn py_9(self) -> Self

Sets the vertical padding of the element. Docs

36px (2.25rem)

Source

pub fn py_neg_9(self) -> Self

Sets the vertical padding of the element. Docs

36px (2.25rem)

Source

pub fn py_10(self) -> Self

Sets the vertical padding of the element. Docs

40px (2.5rem)

Source

pub fn py_neg_10(self) -> Self

Sets the vertical padding of the element. Docs

40px (2.5rem)

Source

pub fn py_11(self) -> Self

Sets the vertical padding of the element. Docs

44px (2.75rem)

Source

pub fn py_neg_11(self) -> Self

Sets the vertical padding of the element. Docs

44px (2.75rem)

Source

pub fn py_12(self) -> Self

Sets the vertical padding of the element. Docs

48px (3rem)

Source

pub fn py_neg_12(self) -> Self

Sets the vertical padding of the element. Docs

48px (3rem)

Source

pub fn py_16(self) -> Self

Sets the vertical padding of the element. Docs

64px (4rem)

Source

pub fn py_neg_16(self) -> Self

Sets the vertical padding of the element. Docs

64px (4rem)

Source

pub fn py_20(self) -> Self

Sets the vertical padding of the element. Docs

80px (5rem)

Source

pub fn py_neg_20(self) -> Self

Sets the vertical padding of the element. Docs

80px (5rem)

Source

pub fn py_24(self) -> Self

Sets the vertical padding of the element. Docs

96px (6rem)

Source

pub fn py_neg_24(self) -> Self

Sets the vertical padding of the element. Docs

96px (6rem)

Source

pub fn py_32(self) -> Self

Sets the vertical padding of the element. Docs

128px (8rem)

Source

pub fn py_neg_32(self) -> Self

Sets the vertical padding of the element. Docs

128px (8rem)

Source

pub fn py_40(self) -> Self

Sets the vertical padding of the element. Docs

160px (10rem)

Source

pub fn py_neg_40(self) -> Self

Sets the vertical padding of the element. Docs

160px (10rem)

Source

pub fn py_48(self) -> Self

Sets the vertical padding of the element. Docs

192px (12rem)

Source

pub fn py_neg_48(self) -> Self

Sets the vertical padding of the element. Docs

192px (12rem)

Source

pub fn py_56(self) -> Self

Sets the vertical padding of the element. Docs

224px (14rem)

Source

pub fn py_neg_56(self) -> Self

Sets the vertical padding of the element. Docs

224px (14rem)

Source

pub fn py_64(self) -> Self

Sets the vertical padding of the element. Docs

256px (16rem)

Source

pub fn py_neg_64(self) -> Self

Sets the vertical padding of the element. Docs

256px (16rem)

Source

pub fn py_72(self) -> Self

Sets the vertical padding of the element. Docs

288px (18rem)

Source

pub fn py_neg_72(self) -> Self

Sets the vertical padding of the element. Docs

288px (18rem)

Source

pub fn py_80(self) -> Self

Sets the vertical padding of the element. Docs

320px (20rem)

Source

pub fn py_neg_80(self) -> Self

Sets the vertical padding of the element. Docs

320px (20rem)

Source

pub fn py_96(self) -> Self

Sets the vertical padding of the element. Docs

384px (24rem)

Source

pub fn py_neg_96(self) -> Self

Sets the vertical padding of the element. Docs

384px (24rem)

Source

pub fn py_112(self) -> Self

Sets the vertical padding of the element. Docs

448px (28rem)

Source

pub fn py_neg_112(self) -> Self

Sets the vertical padding of the element. Docs

448px (28rem)

Source

pub fn py_128(self) -> Self

Sets the vertical padding of the element. Docs

512px (32rem)

Source

pub fn py_neg_128(self) -> Self

Sets the vertical padding of the element. Docs

512px (32rem)

Source

pub fn py_px(self) -> Self

Sets the vertical padding of the element. Docs

1px

Source

pub fn py_neg_px(self) -> Self

Sets the vertical padding of the element. Docs

1px

Source

pub fn py_full(self) -> Self

Sets the vertical padding of the element. Docs

100%

Source

pub fn py_neg_full(self) -> Self

Sets the vertical padding of the element. Docs

100%

Source

pub fn py_1_2(self) -> Self

Sets the vertical padding of the element. Docs

50% (1/2)

Source

pub fn py_neg_1_2(self) -> Self

Sets the vertical padding of the element. Docs

50% (1/2)

Source

pub fn py_1_3(self) -> Self

Sets the vertical padding of the element. Docs

33% (1/3)

Source

pub fn py_neg_1_3(self) -> Self

Sets the vertical padding of the element. Docs

33% (1/3)

Source

pub fn py_2_3(self) -> Self

Sets the vertical padding of the element. Docs

66% (2/3)

Source

pub fn py_neg_2_3(self) -> Self

Sets the vertical padding of the element. Docs

66% (2/3)

Source

pub fn py_1_4(self) -> Self

Sets the vertical padding of the element. Docs

25% (1/4)

Source

pub fn py_neg_1_4(self) -> Self

Sets the vertical padding of the element. Docs

25% (1/4)

Source

pub fn py_2_4(self) -> Self

Sets the vertical padding of the element. Docs

50% (2/4)

Source

pub fn py_neg_2_4(self) -> Self

Sets the vertical padding of the element. Docs

50% (2/4)

Source

pub fn py_3_4(self) -> Self

Sets the vertical padding of the element. Docs

75% (3/4)

Source

pub fn py_neg_3_4(self) -> Self

Sets the vertical padding of the element. Docs

75% (3/4)

Source

pub fn py_1_5(self) -> Self

Sets the vertical padding of the element. Docs

20% (1/5)

Source

pub fn py_neg_1_5(self) -> Self

Sets the vertical padding of the element. Docs

20% (1/5)

Source

pub fn py_2_5(self) -> Self

Sets the vertical padding of the element. Docs

40% (2/5)

Source

pub fn py_neg_2_5(self) -> Self

Sets the vertical padding of the element. Docs

40% (2/5)

Source

pub fn py_3_5(self) -> Self

Sets the vertical padding of the element. Docs

60% (3/5)

Source

pub fn py_neg_3_5(self) -> Self

Sets the vertical padding of the element. Docs

60% (3/5)

Source

pub fn py_4_5(self) -> Self

Sets the vertical padding of the element. Docs

80% (4/5)

Source

pub fn py_neg_4_5(self) -> Self

Sets the vertical padding of the element. Docs

80% (4/5)

Source

pub fn py_1_6(self) -> Self

Sets the vertical padding of the element. Docs

16% (1/6)

Source

pub fn py_neg_1_6(self) -> Self

Sets the vertical padding of the element. Docs

16% (1/6)

Source

pub fn py_5_6(self) -> Self

Sets the vertical padding of the element. Docs

80% (5/6)

Source

pub fn py_neg_5_6(self) -> Self

Sets the vertical padding of the element. Docs

80% (5/6)

Source

pub fn py_1_12(self) -> Self

Sets the vertical padding of the element. Docs

8% (1/12)

Source

pub fn py_neg_1_12(self) -> Self

Sets the vertical padding of the element. Docs

8% (1/12)

Source

pub fn pl(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the left padding of the element. Docs

Source

pub fn pl_0(self) -> Self

Sets the left padding of the element. Docs

0px

Source

pub fn pl_neg_0(self) -> Self

Sets the left padding of the element. Docs

0px

Source

pub fn pl_0p5(self) -> Self

Sets the left padding of the element. Docs

2px (0.125rem)

Source

pub fn pl_neg_0p5(self) -> Self

Sets the left padding of the element. Docs

2px (0.125rem)

Source

pub fn pl_1(self) -> Self

Sets the left padding of the element. Docs

4px (0.25rem)

Source

pub fn pl_neg_1(self) -> Self

Sets the left padding of the element. Docs

4px (0.25rem)

Source

pub fn pl_1p5(self) -> Self

Sets the left padding of the element. Docs

6px (0.375rem)

Source

pub fn pl_neg_1p5(self) -> Self

Sets the left padding of the element. Docs

6px (0.375rem)

Source

pub fn pl_2(self) -> Self

Sets the left padding of the element. Docs

8px (0.5rem)

Source

pub fn pl_neg_2(self) -> Self

Sets the left padding of the element. Docs

8px (0.5rem)

Source

pub fn pl_2p5(self) -> Self

Sets the left padding of the element. Docs

10px (0.625rem)

Source

pub fn pl_neg_2p5(self) -> Self

Sets the left padding of the element. Docs

10px (0.625rem)

Source

pub fn pl_3(self) -> Self

Sets the left padding of the element. Docs

12px (0.75rem)

Source

pub fn pl_neg_3(self) -> Self

Sets the left padding of the element. Docs

12px (0.75rem)

Source

pub fn pl_3p5(self) -> Self

Sets the left padding of the element. Docs

14px (0.875rem)

Source

pub fn pl_neg_3p5(self) -> Self

Sets the left padding of the element. Docs

14px (0.875rem)

Source

pub fn pl_4(self) -> Self

Sets the left padding of the element. Docs

16px (1rem)

Source

pub fn pl_neg_4(self) -> Self

Sets the left padding of the element. Docs

16px (1rem)

Source

pub fn pl_5(self) -> Self

Sets the left padding of the element. Docs

20px (1.25rem)

Source

pub fn pl_neg_5(self) -> Self

Sets the left padding of the element. Docs

20px (1.25rem)

Source

pub fn pl_6(self) -> Self

Sets the left padding of the element. Docs

24px (1.5rem)

Source

pub fn pl_neg_6(self) -> Self

Sets the left padding of the element. Docs

24px (1.5rem)

Source

pub fn pl_7(self) -> Self

Sets the left padding of the element. Docs

28px (1.75rem)

Source

pub fn pl_neg_7(self) -> Self

Sets the left padding of the element. Docs

28px (1.75rem)

Source

pub fn pl_8(self) -> Self

Sets the left padding of the element. Docs

32px (2rem)

Source

pub fn pl_neg_8(self) -> Self

Sets the left padding of the element. Docs

32px (2rem)

Source

pub fn pl_9(self) -> Self

Sets the left padding of the element. Docs

36px (2.25rem)

Source

pub fn pl_neg_9(self) -> Self

Sets the left padding of the element. Docs

36px (2.25rem)

Source

pub fn pl_10(self) -> Self

Sets the left padding of the element. Docs

40px (2.5rem)

Source

pub fn pl_neg_10(self) -> Self

Sets the left padding of the element. Docs

40px (2.5rem)

Source

pub fn pl_11(self) -> Self

Sets the left padding of the element. Docs

44px (2.75rem)

Source

pub fn pl_neg_11(self) -> Self

Sets the left padding of the element. Docs

44px (2.75rem)

Source

pub fn pl_12(self) -> Self

Sets the left padding of the element. Docs

48px (3rem)

Source

pub fn pl_neg_12(self) -> Self

Sets the left padding of the element. Docs

48px (3rem)

Source

pub fn pl_16(self) -> Self

Sets the left padding of the element. Docs

64px (4rem)

Source

pub fn pl_neg_16(self) -> Self

Sets the left padding of the element. Docs

64px (4rem)

Source

pub fn pl_20(self) -> Self

Sets the left padding of the element. Docs

80px (5rem)

Source

pub fn pl_neg_20(self) -> Self

Sets the left padding of the element. Docs

80px (5rem)

Source

pub fn pl_24(self) -> Self

Sets the left padding of the element. Docs

96px (6rem)

Source

pub fn pl_neg_24(self) -> Self

Sets the left padding of the element. Docs

96px (6rem)

Source

pub fn pl_32(self) -> Self

Sets the left padding of the element. Docs

128px (8rem)

Source

pub fn pl_neg_32(self) -> Self

Sets the left padding of the element. Docs

128px (8rem)

Source

pub fn pl_40(self) -> Self

Sets the left padding of the element. Docs

160px (10rem)

Source

pub fn pl_neg_40(self) -> Self

Sets the left padding of the element. Docs

160px (10rem)

Source

pub fn pl_48(self) -> Self

Sets the left padding of the element. Docs

192px (12rem)

Source

pub fn pl_neg_48(self) -> Self

Sets the left padding of the element. Docs

192px (12rem)

Source

pub fn pl_56(self) -> Self

Sets the left padding of the element. Docs

224px (14rem)

Source

pub fn pl_neg_56(self) -> Self

Sets the left padding of the element. Docs

224px (14rem)

Source

pub fn pl_64(self) -> Self

Sets the left padding of the element. Docs

256px (16rem)

Source

pub fn pl_neg_64(self) -> Self

Sets the left padding of the element. Docs

256px (16rem)

Source

pub fn pl_72(self) -> Self

Sets the left padding of the element. Docs

288px (18rem)

Source

pub fn pl_neg_72(self) -> Self

Sets the left padding of the element. Docs

288px (18rem)

Source

pub fn pl_80(self) -> Self

Sets the left padding of the element. Docs

320px (20rem)

Source

pub fn pl_neg_80(self) -> Self

Sets the left padding of the element. Docs

320px (20rem)

Source

pub fn pl_96(self) -> Self

Sets the left padding of the element. Docs

384px (24rem)

Source

pub fn pl_neg_96(self) -> Self

Sets the left padding of the element. Docs

384px (24rem)

Source

pub fn pl_112(self) -> Self

Sets the left padding of the element. Docs

448px (28rem)

Source

pub fn pl_neg_112(self) -> Self

Sets the left padding of the element. Docs

448px (28rem)

Source

pub fn pl_128(self) -> Self

Sets the left padding of the element. Docs

512px (32rem)

Source

pub fn pl_neg_128(self) -> Self

Sets the left padding of the element. Docs

512px (32rem)

Source

pub fn pl_px(self) -> Self

Sets the left padding of the element. Docs

1px

Source

pub fn pl_neg_px(self) -> Self

Sets the left padding of the element. Docs

1px

Source

pub fn pl_full(self) -> Self

Sets the left padding of the element. Docs

100%

Source

pub fn pl_neg_full(self) -> Self

Sets the left padding of the element. Docs

100%

Source

pub fn pl_1_2(self) -> Self

Sets the left padding of the element. Docs

50% (1/2)

Source

pub fn pl_neg_1_2(self) -> Self

Sets the left padding of the element. Docs

50% (1/2)

Source

pub fn pl_1_3(self) -> Self

Sets the left padding of the element. Docs

33% (1/3)

Source

pub fn pl_neg_1_3(self) -> Self

Sets the left padding of the element. Docs

33% (1/3)

Source

pub fn pl_2_3(self) -> Self

Sets the left padding of the element. Docs

66% (2/3)

Source

pub fn pl_neg_2_3(self) -> Self

Sets the left padding of the element. Docs

66% (2/3)

Source

pub fn pl_1_4(self) -> Self

Sets the left padding of the element. Docs

25% (1/4)

Source

pub fn pl_neg_1_4(self) -> Self

Sets the left padding of the element. Docs

25% (1/4)

Source

pub fn pl_2_4(self) -> Self

Sets the left padding of the element. Docs

50% (2/4)

Source

pub fn pl_neg_2_4(self) -> Self

Sets the left padding of the element. Docs

50% (2/4)

Source

pub fn pl_3_4(self) -> Self

Sets the left padding of the element. Docs

75% (3/4)

Source

pub fn pl_neg_3_4(self) -> Self

Sets the left padding of the element. Docs

75% (3/4)

Source

pub fn pl_1_5(self) -> Self

Sets the left padding of the element. Docs

20% (1/5)

Source

pub fn pl_neg_1_5(self) -> Self

Sets the left padding of the element. Docs

20% (1/5)

Source

pub fn pl_2_5(self) -> Self

Sets the left padding of the element. Docs

40% (2/5)

Source

pub fn pl_neg_2_5(self) -> Self

Sets the left padding of the element. Docs

40% (2/5)

Source

pub fn pl_3_5(self) -> Self

Sets the left padding of the element. Docs

60% (3/5)

Source

pub fn pl_neg_3_5(self) -> Self

Sets the left padding of the element. Docs

60% (3/5)

Source

pub fn pl_4_5(self) -> Self

Sets the left padding of the element. Docs

80% (4/5)

Source

pub fn pl_neg_4_5(self) -> Self

Sets the left padding of the element. Docs

80% (4/5)

Source

pub fn pl_1_6(self) -> Self

Sets the left padding of the element. Docs

16% (1/6)

Source

pub fn pl_neg_1_6(self) -> Self

Sets the left padding of the element. Docs

16% (1/6)

Source

pub fn pl_5_6(self) -> Self

Sets the left padding of the element. Docs

80% (5/6)

Source

pub fn pl_neg_5_6(self) -> Self

Sets the left padding of the element. Docs

80% (5/6)

Source

pub fn pl_1_12(self) -> Self

Sets the left padding of the element. Docs

8% (1/12)

Source

pub fn pl_neg_1_12(self) -> Self

Sets the left padding of the element. Docs

8% (1/12)

Source

pub fn pr(self, length: impl Clone + Into<DefiniteLength>) -> Self

Sets the right padding of the element. Docs

Source

pub fn pr_0(self) -> Self

Sets the right padding of the element. Docs

0px

Source

pub fn pr_neg_0(self) -> Self

Sets the right padding of the element. Docs

0px

Source

pub fn pr_0p5(self) -> Self

Sets the right padding of the element. Docs

2px (0.125rem)

Source

pub fn pr_neg_0p5(self) -> Self

Sets the right padding of the element. Docs

2px (0.125rem)

Source

pub fn pr_1(self) -> Self

Sets the right padding of the element. Docs

4px (0.25rem)

Source

pub fn pr_neg_1(self) -> Self

Sets the right padding of the element. Docs

4px (0.25rem)

Source

pub fn pr_1p5(self) -> Self

Sets the right padding of the element. Docs

6px (0.375rem)

Source

pub fn pr_neg_1p5(self) -> Self

Sets the right padding of the element. Docs

6px (0.375rem)

Source

pub fn pr_2(self) -> Self

Sets the right padding of the element. Docs

8px (0.5rem)

Source

pub fn pr_neg_2(self) -> Self

Sets the right padding of the element. Docs

8px (0.5rem)

Source

pub fn pr_2p5(self) -> Self

Sets the right padding of the element. Docs

10px (0.625rem)

Source

pub fn pr_neg_2p5(self) -> Self

Sets the right padding of the element. Docs

10px (0.625rem)

Source

pub fn pr_3(self) -> Self

Sets the right padding of the element. Docs

12px (0.75rem)

Source

pub fn pr_neg_3(self) -> Self

Sets the right padding of the element. Docs

12px (0.75rem)

Source

pub fn pr_3p5(self) -> Self

Sets the right padding of the element. Docs

14px (0.875rem)

Source

pub fn pr_neg_3p5(self) -> Self

Sets the right padding of the element. Docs

14px (0.875rem)

Source

pub fn pr_4(self) -> Self

Sets the right padding of the element. Docs

16px (1rem)

Source

pub fn pr_neg_4(self) -> Self

Sets the right padding of the element. Docs

16px (1rem)

Source

pub fn pr_5(self) -> Self

Sets the right padding of the element. Docs

20px (1.25rem)

Source

pub fn pr_neg_5(self) -> Self

Sets the right padding of the element. Docs

20px (1.25rem)

Source

pub fn pr_6(self) -> Self

Sets the right padding of the element. Docs

24px (1.5rem)

Source

pub fn pr_neg_6(self) -> Self

Sets the right padding of the element. Docs

24px (1.5rem)

Source

pub fn pr_7(self) -> Self

Sets the right padding of the element. Docs

28px (1.75rem)

Source

pub fn pr_neg_7(self) -> Self

Sets the right padding of the element. Docs

28px (1.75rem)

Source

pub fn pr_8(self) -> Self

Sets the right padding of the element. Docs

32px (2rem)

Source

pub fn pr_neg_8(self) -> Self

Sets the right padding of the element. Docs

32px (2rem)

Source

pub fn pr_9(self) -> Self

Sets the right padding of the element. Docs

36px (2.25rem)

Source

pub fn pr_neg_9(self) -> Self

Sets the right padding of the element. Docs

36px (2.25rem)

Source

pub fn pr_10(self) -> Self

Sets the right padding of the element. Docs

40px (2.5rem)

Source

pub fn pr_neg_10(self) -> Self

Sets the right padding of the element. Docs

40px (2.5rem)

Source

pub fn pr_11(self) -> Self

Sets the right padding of the element. Docs

44px (2.75rem)

Source

pub fn pr_neg_11(self) -> Self

Sets the right padding of the element. Docs

44px (2.75rem)

Source

pub fn pr_12(self) -> Self

Sets the right padding of the element. Docs

48px (3rem)

Source

pub fn pr_neg_12(self) -> Self

Sets the right padding of the element. Docs

48px (3rem)

Source

pub fn pr_16(self) -> Self

Sets the right padding of the element. Docs

64px (4rem)

Source

pub fn pr_neg_16(self) -> Self

Sets the right padding of the element. Docs

64px (4rem)

Source

pub fn pr_20(self) -> Self

Sets the right padding of the element. Docs

80px (5rem)

Source

pub fn pr_neg_20(self) -> Self

Sets the right padding of the element. Docs

80px (5rem)

Source

pub fn pr_24(self) -> Self

Sets the right padding of the element. Docs

96px (6rem)

Source

pub fn pr_neg_24(self) -> Self

Sets the right padding of the element. Docs

96px (6rem)

Source

pub fn pr_32(self) -> Self

Sets the right padding of the element. Docs

128px (8rem)

Source

pub fn pr_neg_32(self) -> Self

Sets the right padding of the element. Docs

128px (8rem)

Source

pub fn pr_40(self) -> Self

Sets the right padding of the element. Docs

160px (10rem)

Source

pub fn pr_neg_40(self) -> Self

Sets the right padding of the element. Docs

160px (10rem)

Source

pub fn pr_48(self) -> Self

Sets the right padding of the element. Docs

192px (12rem)

Source

pub fn pr_neg_48(self) -> Self

Sets the right padding of the element. Docs

192px (12rem)

Source

pub fn pr_56(self) -> Self

Sets the right padding of the element. Docs

224px (14rem)

Source

pub fn pr_neg_56(self) -> Self

Sets the right padding of the element. Docs

224px (14rem)

Source

pub fn pr_64(self) -> Self

Sets the right padding of the element. Docs

256px (16rem)

Source

pub fn pr_neg_64(self) -> Self

Sets the right padding of the element. Docs

256px (16rem)

Source

pub fn pr_72(self) -> Self

Sets the right padding of the element. Docs

288px (18rem)

Source

pub fn pr_neg_72(self) -> Self

Sets the right padding of the element. Docs

288px (18rem)

Source

pub fn pr_80(self) -> Self

Sets the right padding of the element. Docs

320px (20rem)

Source

pub fn pr_neg_80(self) -> Self

Sets the right padding of the element. Docs

320px (20rem)

Source

pub fn pr_96(self) -> Self

Sets the right padding of the element. Docs

384px (24rem)

Source

pub fn pr_neg_96(self) -> Self

Sets the right padding of the element. Docs

384px (24rem)

Source

pub fn pr_112(self) -> Self

Sets the right padding of the element. Docs

448px (28rem)

Source

pub fn pr_neg_112(self) -> Self

Sets the right padding of the element. Docs

448px (28rem)

Source

pub fn pr_128(self) -> Self

Sets the right padding of the element. Docs

512px (32rem)

Source

pub fn pr_neg_128(self) -> Self

Sets the right padding of the element. Docs

512px (32rem)

Source

pub fn pr_px(self) -> Self

Sets the right padding of the element. Docs

1px

Source

pub fn pr_neg_px(self) -> Self

Sets the right padding of the element. Docs

1px

Source

pub fn pr_full(self) -> Self

Sets the right padding of the element. Docs

100%

Source

pub fn pr_neg_full(self) -> Self

Sets the right padding of the element. Docs

100%

Source

pub fn pr_1_2(self) -> Self

Sets the right padding of the element. Docs

50% (1/2)

Source

pub fn pr_neg_1_2(self) -> Self

Sets the right padding of the element. Docs

50% (1/2)

Source

pub fn pr_1_3(self) -> Self

Sets the right padding of the element. Docs

33% (1/3)

Source

pub fn pr_neg_1_3(self) -> Self

Sets the right padding of the element. Docs

33% (1/3)

Source

pub fn pr_2_3(self) -> Self

Sets the right padding of the element. Docs

66% (2/3)

Source

pub fn pr_neg_2_3(self) -> Self

Sets the right padding of the element. Docs

66% (2/3)

Source

pub fn pr_1_4(self) -> Self

Sets the right padding of the element. Docs

25% (1/4)

Source

pub fn pr_neg_1_4(self) -> Self

Sets the right padding of the element. Docs

25% (1/4)

Source

pub fn pr_2_4(self) -> Self

Sets the right padding of the element. Docs

50% (2/4)

Source

pub fn pr_neg_2_4(self) -> Self

Sets the right padding of the element. Docs

50% (2/4)

Source

pub fn pr_3_4(self) -> Self

Sets the right padding of the element. Docs

75% (3/4)

Source

pub fn pr_neg_3_4(self) -> Self

Sets the right padding of the element. Docs

75% (3/4)

Source

pub fn pr_1_5(self) -> Self

Sets the right padding of the element. Docs

20% (1/5)

Source

pub fn pr_neg_1_5(self) -> Self

Sets the right padding of the element. Docs

20% (1/5)

Source

pub fn pr_2_5(self) -> Self

Sets the right padding of the element. Docs

40% (2/5)

Source

pub fn pr_neg_2_5(self) -> Self

Sets the right padding of the element. Docs

40% (2/5)

Source

pub fn pr_3_5(self) -> Self

Sets the right padding of the element. Docs

60% (3/5)

Source

pub fn pr_neg_3_5(self) -> Self

Sets the right padding of the element. Docs

60% (3/5)

Source

pub fn pr_4_5(self) -> Self

Sets the right padding of the element. Docs

80% (4/5)

Source

pub fn pr_neg_4_5(self) -> Self

Sets the right padding of the element. Docs

80% (4/5)

Source

pub fn pr_1_6(self) -> Self

Sets the right padding of the element. Docs

16% (1/6)

Source

pub fn pr_neg_1_6(self) -> Self

Sets the right padding of the element. Docs

16% (1/6)

Source

pub fn pr_5_6(self) -> Self

Sets the right padding of the element. Docs

80% (5/6)

Source

pub fn pr_neg_5_6(self) -> Self

Sets the right padding of the element. Docs

80% (5/6)

Source

pub fn pr_1_12(self) -> Self

Sets the right padding of the element. Docs

8% (1/12)

Source

pub fn pr_neg_1_12(self) -> Self

Sets the right padding of the element. Docs

8% (1/12)

Trait Implementations§

Source§

impl Component for Facepile

Source§

fn scope() -> ComponentScope

Returns the scope of the component. Read more
Source§

fn description() -> Option<&'static str>

An optional description of the component. Read more
Source§

fn preview(_window: &mut Window, _cx: &mut App) -> Option<AnyElement>

The component’s preview. Read more
Source§

fn id() -> ComponentId

The component’s unique identifier. Read more
Source§

fn status() -> ComponentStatus

The ready status of this component. Read more
Source§

fn name() -> &'static str

The name of the component. Read more
Source§

fn sort_name() -> &'static str

Returns a name that the component should be sorted by. Read more
Source§

impl Documented for Facepile

Source§

const DOCS: &'static str = "An element that displays a collection of (usually) faces stacked\nhorizontally, with the left-most face on top, visually descending\nfrom left to right.\n\nFacepiles are used to display a group of people or things,\nsuch as a list of participants in a collaboration session.\n\n# Examples\n\n## Default\n\nA default, horizontal facepile.\n\n```\nuse gpui::IntoElement;\nuse ui::{Avatar, Facepile, EXAMPLE_FACES};\n\nlet facepile = Facepile::new(\nEXAMPLE_FACES.iter().take(3).map(|&url|\nAvatar::new(url).into_any_element()).collect()\n);\n```"

The static doc comments on this type.
Source§

impl IntoElement for Facepile

Source§

type Element = Component<Facepile>

The specific type of element into which the implementing type is converted. Useful for converting other types into elements automatically, like Strings
Source§

fn into_element(self) -> Self::Element

Convert self into a type that implements Element.
Source§

fn into_any_element(self) -> AnyElement

Convert self into a dynamically-typed AnyElement.
Source§

impl ParentElement for Facepile

Source§

fn extend(&mut self, elements: impl IntoIterator<Item = AnyElement>)

Extend this element’s children with the given child elements.
Source§

fn child(self, child: impl IntoElement) -> Self
where Self: Sized,

Add a single child element to this element.
Source§

fn children(self, children: impl IntoIterator<Item = impl IntoElement>) -> Self
where Self: Sized,

Add multiple child elements to this element.
Source§

impl RenderOnce for Facepile

Source§

fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement

Render this component into an element tree. Note that this method takes ownership of self, as compared to Render::render() method which takes a mutable reference.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
Source§

impl<E> AnimationExt for E
where E: IntoElement + 'static,

Source§

fn with_animation( self, id: impl Into<ElementId>, animation: Animation, animator: impl Fn(Self, f32) -> Self + 'static, ) -> AnimationElement<Self>
where Self: Sized,

Render this component or element with an animation
Source§

fn with_animations( self, id: impl Into<ElementId>, animations: Vec<Animation>, animator: impl Fn(Self, usize, f32) -> Self + 'static, ) -> AnimationElement<Self>
where Self: Sized,

Render this component or element with a chain of animations
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CommonAnimationExt for T
where T: AnimationExt,

Source§

fn with_rotate_animation(self, duration: u64) -> AnimationElement<Self>
where Self: Transformable + Sized,

Render this component as rotating over the given duration. Read more
Source§

fn with_keyed_rotate_animation( self, id: impl Into<ElementId>, duration: u64, ) -> AnimationElement<Self>
where Self: Transformable + Sized,

Render this component as rotating with the given element ID over the given duration.
Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
Source§

impl<T> FluentBuilder for T
where T: IntoElement,

Source§

fn map<U>(self, f: impl FnOnce(Self) -> U) -> U
where Self: Sized,

Imperatively modify self with the given closure.
Source§

fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
where Self: Sized,

Conditionally modify self with the given closure.
Source§

fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
where Self: Sized,

Conditionally modify self with the given closure.
Source§

fn when_some<T>( self, option: Option<T>, then: impl FnOnce(Self, T) -> Self, ) -> Self
where Self: Sized,

Conditionally unwrap and modify self with the given closure, if the given option is Some.
Source§

fn when_none<T>( self, option: &Option<T>, then: impl FnOnce(Self) -> Self, ) -> Self
where Self: Sized,

Conditionally unwrap and modify self with the given closure, if the given option is None.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more