pub enum CoordinateSpace {
Global,
Local,
}Expand description
Where a hover’s location is measured.
.named carries an AnyHashable, which makes the enum address-only — so
unlike the small SwiftUI enums this one is built in a buffer and passed by
pointer. Payload cases are numbered first, so .named is 0 and the two
cases spelled here follow both of them: .named(AnyHashable) is 0 and the
undocumented .id(CoordinateSpace.ID) is 1, so .global is 2 and .local
is 3. Guessing from the public cases alone lands on .id, which renders
without complaint against a coordinate space that was never named.
Variants§
Trait Implementations§
Source§impl Clone for CoordinateSpace
impl Clone for CoordinateSpace
impl Copy for CoordinateSpace
Source§impl Debug for CoordinateSpace
impl Debug for CoordinateSpace
impl Eq for CoordinateSpace
Source§impl From<Global> for CoordinateSpace
impl From<Global> for CoordinateSpace
Source§impl From<Local> for CoordinateSpace
impl From<Local> for CoordinateSpace
Source§impl PartialEq for CoordinateSpace
impl PartialEq for CoordinateSpace
impl StructuralPartialEq for CoordinateSpace
Auto Trait Implementations§
impl Freeze for CoordinateSpace
impl RefUnwindSafe for CoordinateSpace
impl Send for CoordinateSpace
impl Sync for CoordinateSpace
impl Unpin for CoordinateSpace
impl UnsafeUnpin for CoordinateSpace
impl UnwindSafe for CoordinateSpace
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