pub struct AXValueSource<'a> { /* private fields */ }Expand description
A single source for a computed AX property.
Implementations§
Source§impl<'a> AXValueSource<'a>
impl<'a> AXValueSource<'a>
Sourcepub fn builder(type_: impl Into<AXValueSourceType>) -> AXValueSourceBuilder<'a>
pub fn builder(type_: impl Into<AXValueSourceType>) -> AXValueSourceBuilder<'a>
Creates a builder for this type with the required parameters:
type_: What type of source this is.
Sourcepub fn type_(&self) -> &AXValueSourceType
pub fn type_(&self) -> &AXValueSourceType
What type of source this is.
Sourcepub fn attribute_value(&self) -> Option<&AXValue<'a>>
pub fn attribute_value(&self) -> Option<&AXValue<'a>>
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 ‘<label>’ element.
Sourcepub fn native_source_value(&self) -> Option<&AXValue<'a>>
pub fn native_source_value(&self) -> Option<&AXValue<'a>>
The value, such as a node or node list, of the native source.
Sourcepub fn invalid_reason(&self) -> Option<&str>
pub fn invalid_reason(&self) -> Option<&str>
Reason for the value being invalid, if it is.
Trait Implementations§
Source§impl<'a> Clone for AXValueSource<'a>
impl<'a> Clone for AXValueSource<'a>
Source§fn clone(&self) -> AXValueSource<'a>
fn clone(&self) -> AXValueSource<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AXValueSource<'a>
impl<'a> Debug for AXValueSource<'a>
Source§impl<'a> Default for AXValueSource<'a>
impl<'a> Default for AXValueSource<'a>
Source§fn default() -> AXValueSource<'a>
fn default() -> AXValueSource<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AXValueSource<'a>
impl<'de, 'a> Deserialize<'de> for AXValueSource<'a>
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<'a> Freeze for AXValueSource<'a>
impl<'a> RefUnwindSafe for AXValueSource<'a>
impl<'a> Send for AXValueSource<'a>
impl<'a> Sync for AXValueSource<'a>
impl<'a> Unpin for AXValueSource<'a>
impl<'a> UnsafeUnpin for AXValueSource<'a>
impl<'a> UnwindSafe for AXValueSource<'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