Enum ambient_api::prelude::Orientation
source · pub enum Orientation {
Horizontal,
Vertical,
}
Expand description
Orientation: Layout orientation.
Variants§
Trait Implementations§
source§impl Clone for Orientation
impl Clone for Orientation
source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
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 Orientation
impl Debug for Orientation
source§impl Default for Orientation
impl Default for Orientation
source§fn default() -> Orientation
fn default() -> Orientation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Orientation
impl<'de> Deserialize<'de> for Orientation
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Orientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Orientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EnumComponent for Orientation
impl EnumComponent for Orientation
source§impl MessageSerde for Orientation
impl MessageSerde for Orientation
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<Orientation, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<Orientation, MessageSerdeError>
Deserialize this if possible.
source§impl PartialEq for Orientation
impl PartialEq for Orientation
source§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Orientation
impl Serialize for Orientation
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
source§impl SupportedValue for Orientation
impl SupportedValue for Orientation
source§fn from_value(value: ComponentValue) -> Option<Orientation>
fn from_value(value: ComponentValue) -> Option<Orientation>
Converts a
ComponentValue
into a Self
.source§fn into_value(self) -> ComponentValue
fn into_value(self) -> ComponentValue
Converts a
Self
into a ComponentValue
.impl Copy for Orientation
impl Eq for Orientation
impl StructuralEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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.