Skip to main content

RawAnnotation

Struct RawAnnotation 

Source
pub struct RawAnnotation {
Show 23 fields pub source: AnnotationSource, pub role: Option<Role>, pub name: Option<String>, pub description: Option<String>, pub tooltip: Option<String>, pub placeholder: Option<String>, pub value: Option<RawValue>, pub test_id: Option<String>, pub rust_path: Option<String>, pub kind: Option<Cow<'static, str>>, pub props: BTreeMap<String, String>, pub text_size: Option<f32>, pub states: Vec<(StateName, StateValue)>, pub level: Option<u16>, pub position: Option<(u32, u32)>, pub key: Option<RawKey>, pub labelled_by: Vec<RawKey>, pub label_for: Vec<RawKey>, pub described_by: Vec<RawKey>, pub controls: Vec<RawKey>, pub owns: Vec<RawKey>, pub carets: Vec<(usize, Point)>, pub cursor_seen: Option<CursorSeen>,
}
Expand description

Every annotation field as owned data. Unset fields are None or empty.

Fields§

§source: AnnotationSource

Which code wrote it.

§role: Option<Role>

The role, when one was set.

§name: Option<String>

The accessible name.

§description: Option<String>

The description.

§tooltip: Option<String>

The tooltip text.

§placeholder: Option<String>

The placeholder of an editable role.

§value: Option<RawValue>

The value.

§test_id: Option<String>

The test id string.

§rust_path: Option<String>

The Rust path of a typed test id from its crate root, such as todo::Ids::NewItem. None for a string id.

§kind: Option<Cow<'static, str>>

The kind, such as "iced_cube::tree". None means "app".

§props: BTreeMap<String, String>

Free-form properties.

§text_size: Option<f32>

The text size in logical pixels.

§states: Vec<(StateName, StateValue)>

Reported states.

§level: Option<u16>

The heading or tree level. ARIA levels start at 1.

§position: Option<(u32, u32)>

Position in the set and set size.

§key: Option<RawKey>

The key others use to name this node.

§labelled_by: Vec<RawKey>

Nodes whose names label this one.

§label_for: Vec<RawKey>

Nodes this one labels.

§described_by: Vec<RawKey>

Nodes whose text describes this one.

§controls: Vec<RawKey>

Nodes this one controls.

§owns: Vec<RawKey>

Nodes that are this one’s logical children although they live elsewhere.

§carets: Vec<(usize, Point)>

Byte offset to caret top, sorted by offset.

§cursor_seen: Option<CursorSeen>

The cursor kind handed to the widget for its last mouse event this frame.

Trait Implementations§

Source§

impl Clone for RawAnnotation

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RawAnnotation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RawAnnotation

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RawAnnotation

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for RawAnnotation

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RawAnnotation

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RawAnnotation

Auto Trait Implementations§

§

impl Forget for RawAnnotation

§

impl Freeze for RawAnnotation

§

impl Move for RawAnnotation

§

impl RefUnwindSafe for RawAnnotation

§

impl Send for RawAnnotation
where RawVecInner: Send, &'static str: Send, String: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send,

§

impl Sync for RawAnnotation
where RawVecInner: Sync, String: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync,

§

impl Unpin for RawAnnotation
where *const u8 is !null: Unpin, &'static str: Unpin, String: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin,

§

impl UnsafeUnpin for RawAnnotation

§

impl UnwindSafe for RawAnnotation

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.