pub struct AxValueSourceBuilder { /* private fields */ }Available on crate features
experimental and Accessibility and DOM only.Implementations§
Source§impl AxValueSourceBuilder
impl AxValueSourceBuilder
Sourcepub fn type(&mut self, v: AxValueSourceType) -> &mut Self
pub fn type(&mut self, v: AxValueSourceType) -> &mut Self
What type of source this is.
Sourcepub fn attribute(&mut self, v: String) -> &mut Self
pub fn attribute(&mut self, v: String) -> &mut Self
The name of the relevant attribute, if any.
Sourcepub fn attribute_value(&mut self, v: AxValue) -> &mut Self
pub fn attribute_value(&mut self, v: AxValue) -> &mut Self
The value of the relevant attribute, if any.
Sourcepub fn superseded(&mut self, v: bool) -> &mut Self
pub fn superseded(&mut self, v: bool) -> &mut Self
Whether this source is superseded by a higher priority source.
Sourcepub fn native_source(&mut self, v: AxValueNativeSourceType) -> &mut Self
pub fn native_source(&mut self, v: AxValueNativeSourceType) -> &mut Self
The native markup source for this value, e.g. a
Sourcepub fn native_source_value(&mut self, v: AxValue) -> &mut Self
pub fn native_source_value(&mut self, v: AxValue) -> &mut Self
The value, such as a node or node list, of the native source.
Sourcepub fn invalid(&mut self, v: bool) -> &mut Self
pub fn invalid(&mut self, v: bool) -> &mut Self
Whether the value for this property is invalid.
Sourcepub fn invalid_reason(&mut self, v: String) -> &mut Self
pub fn invalid_reason(&mut self, v: String) -> &mut Self
Reason for the value being invalid, if it is.
pub fn build(&mut self) -> Result<AxValueSource, &'static str>
Trait Implementations§
Source§impl Clone for AxValueSourceBuilder
impl Clone for AxValueSourceBuilder
Source§fn clone(&self) -> AxValueSourceBuilder
fn clone(&self) -> AxValueSourceBuilder
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 AxValueSourceBuilder
impl Debug for AxValueSourceBuilder
Auto Trait Implementations§
impl Freeze for AxValueSourceBuilder
impl RefUnwindSafe for AxValueSourceBuilder
impl Send for AxValueSourceBuilder
impl Sync for AxValueSourceBuilder
impl Unpin for AxValueSourceBuilder
impl UnwindSafe for AxValueSourceBuilder
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