Enum yuck::config::window_geometry::AnchorAlignment
source · [−]pub enum AnchorAlignment {
START,
CENTER,
END,
}Variants
START
CENTER
END
Implementations
sourceimpl AnchorAlignment
impl AnchorAlignment
pub fn from_x_alignment(s: &str) -> Result<AnchorAlignment, EnumParseError>
pub fn from_y_alignment(s: &str) -> Result<AnchorAlignment, EnumParseError>
pub fn alignment_to_coordinate(
&self,
size_inner: i32,
size_container: i32
) -> i32
Trait Implementations
sourceimpl Clone for AnchorAlignment
impl Clone for AnchorAlignment
sourcefn clone(&self) -> AnchorAlignment
fn clone(&self) -> AnchorAlignment
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 more
sourceimpl Debug for AnchorAlignment
impl Debug for AnchorAlignment
sourceimpl Default for AnchorAlignment
impl Default for AnchorAlignment
sourceimpl<'de> Deserialize<'de> for AnchorAlignment
impl<'de> Deserialize<'de> for AnchorAlignment
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for AnchorAlignment
impl Display for AnchorAlignment
sourceimpl PartialEq<AnchorAlignment> for AnchorAlignment
impl PartialEq<AnchorAlignment> for AnchorAlignment
sourceimpl Serialize for AnchorAlignment
impl Serialize for AnchorAlignment
impl Copy for AnchorAlignment
impl Eq for AnchorAlignment
impl StructuralEq for AnchorAlignment
impl StructuralPartialEq for AnchorAlignment
Auto Trait Implementations
impl RefUnwindSafe for AnchorAlignment
impl Send for AnchorAlignment
impl Sync for AnchorAlignment
impl Unpin for AnchorAlignment
impl UnwindSafe for AnchorAlignment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more