Enum ambient_ui::layout::Align
source · pub enum Align {
Begin,
Center,
End,
}
Expand description
Align: Layout alignment.
Variants§
Trait Implementations§
source§impl SupportedValue for Align
impl SupportedValue for Align
source§fn from_value(value: ComponentValue) -> Option<Align>
fn from_value(value: ComponentValue) -> Option<Align>
Converts a
ComponentValue
into a Self
.source§fn into_value(self) -> ComponentValue
fn into_value(self) -> ComponentValue
Converts a
Self
into a ComponentValue
.source§impl<'de> Deserialize<'de> for Align
impl<'de> Deserialize<'de> for Align
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Align, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Align, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EnumComponent for Align
impl EnumComponent for Align
source§impl MessageSerde for Align
impl MessageSerde for Align
source§fn serialize_message_part(
&self,
output: &mut Vec<u8>
) -> Result<(), MessageSerdeError>
fn serialize_message_part( &self, output: &mut Vec<u8> ) -> Result<(), MessageSerdeError>
Serialize this to a
Vec<u8>
.source§fn deserialize_message_part(
input: &mut dyn Read
) -> Result<Align, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<Align, MessageSerdeError>
Deserialize this if possible.
source§impl PartialEq for Align
impl PartialEq for Align
source§impl Serialize for Align
impl Serialize for Align
source§fn 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 Align
impl Eq for Align
impl StructuralEq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.