#[non_exhaustive]pub enum JustifyMode {
None,
Fill,
Spread,
}
Available on crate feature
v1_7
only.Expand description
Describes line justify behaviors in a WrapLayout
or WrapBox
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Don’t justify children within a line.
Fill
Stretch each child within the line, keeping consistent spacing, so that the line fills the entire length.
Spread
Increase spacing between children, moving the children so that the first and last child are aligned with the beginning and end of the line. If the line only contains a single widget, it will be stretched regardless.
Trait Implementations§
Source§impl Clone for JustifyMode
impl Clone for JustifyMode
Source§fn clone(&self) -> JustifyMode
fn clone(&self) -> JustifyMode
Returns a copy 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 Debug for JustifyMode
impl Debug for JustifyMode
Source§impl From<JustifyMode> for Value
impl From<JustifyMode> for Value
Source§fn from(v: JustifyMode) -> Self
fn from(v: JustifyMode) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for JustifyMode
impl<'a> FromValue<'a> for JustifyMode
Source§type Checker = GenericValueTypeChecker<JustifyMode>
type Checker = GenericValueTypeChecker<JustifyMode>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for JustifyMode
impl HasParamSpec for JustifyMode
type ParamSpec = ParamSpecEnum
Source§type SetValue = JustifyMode
type SetValue = JustifyMode
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: JustifyMode) -> ParamSpecEnumBuilder<'_, JustifyMode>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for JustifyMode
impl Hash for JustifyMode
Source§impl Ord for JustifyMode
impl Ord for JustifyMode
Source§fn cmp(&self, other: &JustifyMode) -> Ordering
fn cmp(&self, other: &JustifyMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JustifyMode
impl PartialEq for JustifyMode
Source§impl PartialOrd for JustifyMode
impl PartialOrd for JustifyMode
Source§impl StaticType for JustifyMode
impl StaticType for JustifyMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for JustifyMode
impl ToValue for JustifyMode
Source§impl ValueType for JustifyMode
impl ValueType for JustifyMode
Source§type Type = JustifyMode
type Type = JustifyMode
Type to get the
Type
from. Read moreimpl Copy for JustifyMode
impl Eq for JustifyMode
impl StructuralPartialEq for JustifyMode
Auto Trait Implementations§
impl Freeze for JustifyMode
impl RefUnwindSafe for JustifyMode
impl Send for JustifyMode
impl Sync for JustifyMode
impl Unpin for JustifyMode
impl UnwindSafe for JustifyMode
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.