pub enum HashableValue<'a> {
Str(&'a str),
Int(i64),
Bool(bool),
Double(f64),
}Expand description
A value to pass where SwiftUI asks for some Hashable.
id and tag are generic over Hashable rather than over any SwiftUI
protocol, so the conformance comes from the standard library and the choice
of concrete type is the caller’s.
Variants§
Trait Implementations§
Source§impl<'a> Clone for HashableValue<'a>
impl<'a> Clone for HashableValue<'a>
impl<'a> Copy for HashableValue<'a>
Source§impl<'a> Debug for HashableValue<'a>
impl<'a> Debug for HashableValue<'a>
Source§impl<'a> IntoHashable<'a> for HashableValue<'a>
impl<'a> IntoHashable<'a> for HashableValue<'a>
Source§fn into_hashable(self) -> HashableValue<'a>
fn into_hashable(self) -> HashableValue<'a>
This value as the carrier.
Source§impl<'a> PartialEq for HashableValue<'a>
impl<'a> PartialEq for HashableValue<'a>
impl<'a> StructuralPartialEq for HashableValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for HashableValue<'a>
impl<'a> RefUnwindSafe for HashableValue<'a>
impl<'a> Send for HashableValue<'a>
impl<'a> Sync for HashableValue<'a>
impl<'a> Unpin for HashableValue<'a>
impl<'a> UnsafeUnpin for HashableValue<'a>
impl<'a> UnwindSafe for HashableValue<'a>
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