Enum ambient_ui::layout::Fit
source · pub enum Fit {
None,
Parent,
Children,
}
Expand description
Fit: Layout fit.
Variants§
Trait Implementations§
source§impl SupportedValue for Fit
impl SupportedValue for Fit
source§fn from_value(value: ComponentValue) -> Option<Fit>
fn from_value(value: ComponentValue) -> Option<Fit>
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 Fit
impl<'de> Deserialize<'de> for Fit
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Fit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Fit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EnumComponent for Fit
impl EnumComponent for Fit
source§impl MessageSerde for Fit
impl MessageSerde for Fit
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<Fit, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<Fit, MessageSerdeError>
Deserialize this if possible.
source§impl Serialize for Fit
impl Serialize for Fit
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 Fit
impl Eq for Fit
impl StructuralEq for Fit
impl StructuralPartialEq for Fit
Auto Trait Implementations§
impl RefUnwindSafe for Fit
impl Send for Fit
impl Sync for Fit
impl Unpin for Fit
impl UnwindSafe for Fit
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.