pub struct AxValueSource { /* private fields */ }Available on crate features
experimental and Accessibility and DOM only.Expand description
A single source for a computed AX property.
Implementations§
Source§impl AxValueSource
impl AxValueSource
pub fn builder() -> AxValueSourceBuilder
Sourcepub fn type(&self) -> &AxValueSourceType
pub fn type(&self) -> &AxValueSourceType
What type of source this is.
Sourcepub fn attribute_value(&self) -> Option<&AxValue>
pub fn attribute_value(&self) -> Option<&AxValue>
The value of the relevant attribute, if any.
Sourcepub fn superseded(&self) -> Option<&bool>
pub fn superseded(&self) -> Option<&bool>
Whether this source is superseded by a higher priority source.
Sourcepub fn native_source(&self) -> Option<&AxValueNativeSourceType>
pub fn native_source(&self) -> Option<&AxValueNativeSourceType>
The native markup source for this value, e.g. a
Sourcepub fn native_source_value(&self) -> Option<&AxValue>
pub fn native_source_value(&self) -> Option<&AxValue>
The value, such as a node or node list, of the native source.
Sourcepub fn invalid_reason(&self) -> Option<&String>
pub fn invalid_reason(&self) -> Option<&String>
Reason for the value being invalid, if it is.
Trait Implementations§
Source§impl Clone for AxValueSource
impl Clone for AxValueSource
Source§fn clone(&self) -> AxValueSource
fn clone(&self) -> AxValueSource
Returns a duplicate 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 AxValueSource
impl Debug for AxValueSource
Source§impl<'de> Deserialize<'de> for AxValueSource
impl<'de> Deserialize<'de> for AxValueSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AxValueSource
impl RefUnwindSafe for AxValueSource
impl Send for AxValueSource
impl Sync for AxValueSource
impl Unpin for AxValueSource
impl UnwindSafe for AxValueSource
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