Enum freya::prelude::CustomAttributeValues
source · pub enum CustomAttributeValues {
Reference(NodeReference),
CursorReference(CursorReference),
Bytes(Vec<u8, Global>),
ImageReference(ImageReference),
FocusId(NodeId),
TextHighlights(Vec<(usize, usize), Global>),
Canvas(CanvasReference),
}Expand description
Group all the custom attribute types
Variants§
Reference(NodeReference)
CursorReference(CursorReference)
Bytes(Vec<u8, Global>)
ImageReference(ImageReference)
FocusId(NodeId)
TextHighlights(Vec<(usize, usize), Global>)
Canvas(CanvasReference)
Trait Implementations§
source§impl Clone for CustomAttributeValues
impl Clone for CustomAttributeValues
source§fn clone(&self) -> CustomAttributeValues
fn clone(&self) -> CustomAttributeValues
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CustomAttributeValues
impl Debug for CustomAttributeValues
source§impl FromAnyValue for CustomAttributeValues
impl FromAnyValue for CustomAttributeValues
source§fn from_any_value(b: &(dyn Any + 'static)) -> CustomAttributeValues
fn from_any_value(b: &(dyn Any + 'static)) -> CustomAttributeValues
Convert from an Any value.
source§impl PartialEq<CustomAttributeValues> for CustomAttributeValues
impl PartialEq<CustomAttributeValues> for CustomAttributeValues
source§fn eq(&self, other: &CustomAttributeValues) -> bool
fn eq(&self, other: &CustomAttributeValues) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomAttributeValues
Auto Trait Implementations§
impl !RefUnwindSafe for CustomAttributeValues
impl Send for CustomAttributeValues
impl Sync for CustomAttributeValues
impl Unpin for CustomAttributeValues
impl !UnwindSafe for CustomAttributeValues
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer