#[non_exhaustive]pub enum CompositionGuide {
Thirds,
Divisions(u32),
Squares(u32),
GoldenRatio,
}Expand description
The lines a RuleOfThirdsGrid draws.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Thirds
Two lines each way, at a third and two thirds.
Divisions(u32)
This many equal parts each way, such as a fine grid to level a horizon.
Squares(u32)
Square cells, this many along the shorter side.
GoldenRatio
Two lines each way, at the golden ratio.
Trait Implementations§
Source§impl Clone for CompositionGuide
impl Clone for CompositionGuide
Source§fn clone(&self) -> CompositionGuide
fn clone(&self) -> CompositionGuide
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompositionGuide
Source§impl Debug for CompositionGuide
impl Debug for CompositionGuide
Source§impl Default for CompositionGuide
impl Default for CompositionGuide
Source§fn default() -> CompositionGuide
fn default() -> CompositionGuide
Returns the “default value” for a type. Read more
Source§impl PartialEq for CompositionGuide
impl PartialEq for CompositionGuide
impl StructuralPartialEq for CompositionGuide
Auto Trait Implementations§
impl Freeze for CompositionGuide
impl RefUnwindSafe for CompositionGuide
impl Send for CompositionGuide
impl Sync for CompositionGuide
impl Unpin for CompositionGuide
impl UnsafeUnpin for CompositionGuide
impl UnwindSafe for CompositionGuide
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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