Enum oxygengine_user_interface::widget::unit::flex::FlexBoxDirection
source · [−]pub enum FlexBoxDirection {
HorizontalLeftToRight,
HorizontalRightToLeft,
VerticalTopToBottom,
VerticalBottomToTop,
}
Variants
HorizontalLeftToRight
HorizontalRightToLeft
VerticalTopToBottom
VerticalBottomToTop
Implementations
sourceimpl FlexBoxDirection
impl FlexBoxDirection
pub fn is_horizontal(&self) -> bool
pub fn is_vertical(&self) -> bool
pub fn is_order_ascending(&self) -> bool
pub fn is_order_descending(&self) -> bool
Trait Implementations
sourceimpl Clone for FlexBoxDirection
impl Clone for FlexBoxDirection
sourcefn clone(&self) -> FlexBoxDirection
fn clone(&self) -> FlexBoxDirection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FlexBoxDirection
impl Debug for FlexBoxDirection
sourceimpl Default for FlexBoxDirection
impl Default for FlexBoxDirection
sourcefn default() -> FlexBoxDirection
fn default() -> FlexBoxDirection
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FlexBoxDirection
impl<'de> Deserialize<'de> for FlexBoxDirection
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<FlexBoxDirection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FlexBoxDirection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FlexBoxDirection> for FlexBoxDirection
impl PartialEq<FlexBoxDirection> for FlexBoxDirection
sourcefn eq(&self, other: &FlexBoxDirection) -> bool
fn eq(&self, other: &FlexBoxDirection) -> bool
sourceimpl Serialize for FlexBoxDirection
impl Serialize for FlexBoxDirection
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FlexBoxDirection
impl Eq for FlexBoxDirection
impl StructuralEq for FlexBoxDirection
impl StructuralPartialEq for FlexBoxDirection
Auto Trait Implementations
impl RefUnwindSafe for FlexBoxDirection
impl Send for FlexBoxDirection
impl Sync for FlexBoxDirection
impl Unpin for FlexBoxDirection
impl UnwindSafe for FlexBoxDirection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.