pub struct HitTestResultBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct HitTestResult
objects.
Implementations§
Source§impl HitTestResultBuilder
impl HitTestResultBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HitTestResultBuilder
.
Sourcepub fn build(self) -> HitTestResult
pub fn build(self) -> HitTestResult
Build the HitTestResult
.
pub fn context(self, context: u32) -> Self
pub fn image_uri(self, image_uri: &str) -> Self
pub fn link_label(self, link_label: &str) -> Self
pub fn link_title(self, link_title: &str) -> Self
pub fn link_uri(self, link_uri: &str) -> Self
pub fn media_uri(self, media_uri: &str) -> Self
Trait Implementations§
Source§impl Clone for HitTestResultBuilder
impl Clone for HitTestResultBuilder
Source§fn clone(&self) -> HitTestResultBuilder
fn clone(&self) -> HitTestResultBuilder
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 Default for HitTestResultBuilder
impl Default for HitTestResultBuilder
Source§fn default() -> HitTestResultBuilder
fn default() -> HitTestResultBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HitTestResultBuilder
impl RefUnwindSafe for HitTestResultBuilder
impl Send for HitTestResultBuilder
impl Sync for HitTestResultBuilder
impl Unpin for HitTestResultBuilder
impl UnwindSafe for HitTestResultBuilder
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