Struct savory_elements::layout::flex::Flex [−][src]
Fields
id: Option<Id>
items: Vec<Item<Msg>>
direction: Option<Direction>
wrap: Option<Wrap>
justify_content: Option<JustifyContent>
align_items: Option<AlignItems>
align_content: Option<AlignContent>
gap: Option<Gap>
inline: bool
Implementations
impl<Msg> Flex<Msg>
[src]
pub fn id(self, value: impl Into<Id>) -> Self
[src]
pub fn and_items(
self,
set_value: impl FnOnce(Vec<Item<Msg>>) -> Vec<Item<Msg>>
) -> Self
[src]
self,
set_value: impl FnOnce(Vec<Item<Msg>>) -> Vec<Item<Msg>>
) -> Self
pub fn items(self, value: impl Into<Vec<Item<Msg>>>) -> Self
[src]
pub fn reversed_row(self) -> Self
[src]
pub fn reversed_column(self) -> Self
[src]
pub fn wrap(self) -> Self
[src]
pub fn no_wrap(self) -> Self
[src]
pub fn reversed_wrap(self) -> Self
[src]
pub fn justify_content(self, value: impl Into<JustifyContent>) -> Self
[src]
pub fn align_items(self, value: impl Into<AlignItems>) -> Self
[src]
pub fn align_content(self, value: impl Into<AlignContent>) -> Self
[src]
pub fn gap(self, value: impl Into<Gap>) -> Self
[src]
pub fn inline(self) -> Self
[src]
impl<Msg> Flex<Msg>
[src]
pub fn column() -> Self
[src]
pub fn row() -> Self
[src]
pub fn item(item: impl Into<Item<Msg>>) -> Item<Msg>
[src]
pub fn normal(self) -> Self
[src]
pub fn stretch(self) -> Self
[src]
pub fn center(self) -> Self
[src]
pub fn start(self) -> Self
[src]
pub fn end(self) -> Self
[src]
pub fn space_between(self) -> Self
[src]
pub fn space_around(self) -> Self
[src]
pub fn space_evenly(self) -> Self
[src]
Trait Implementations
impl<U, Msg> ExtendBuilder<U> for Flex<Msg> where
U: Into<Item<Msg>>,
[src]
U: Into<Item<Msg>>,
fn extend<T>(self, iter: T) -> Self where
T: IntoIterator<Item = U>,
[src]
T: IntoIterator<Item = U>,
impl<T, Msg> PushOwned<T> for Flex<Msg> where
T: Into<Item<Msg>>,
[src]
T: Into<Item<Msg>>,
impl<Msg> View<Node<Msg>> for Flex<Msg>
[src]
Auto Trait Implementations
impl<Msg> !RefUnwindSafe for Flex<Msg>
impl<Msg> !Send for Flex<Msg>
impl<Msg> !Sync for Flex<Msg>
impl<Msg> Unpin for Flex<Msg>
impl<Msg> !UnwindSafe for Flex<Msg>
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,