Enum ambient_api::prelude::Docking
source · pub enum Docking {
Left,
Right,
Top,
Bottom,
Fill,
}
Expand description
Docking: The edge to dock to.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Docking
impl<'de> Deserialize<'de> for Docking
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Docking, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Docking, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EnumComponent for Docking
impl EnumComponent for Docking
source§impl MessageSerde for Docking
impl MessageSerde for Docking
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<Docking, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<Docking, MessageSerdeError>
Deserialize this if possible.
source§impl PartialEq for Docking
impl PartialEq for Docking
source§impl Serialize for Docking
impl Serialize for Docking
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 Docking
impl SupportedValue for Docking
source§fn from_value(value: ComponentValue) -> Option<Docking>
fn from_value(value: ComponentValue) -> Option<Docking>
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 Docking
impl Eq for Docking
impl StructuralEq for Docking
impl StructuralPartialEq for Docking
Auto Trait Implementations§
impl RefUnwindSafe for Docking
impl Send for Docking
impl Sync for Docking
impl Unpin for Docking
impl UnwindSafe for Docking
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.