pub struct SetContentsSizeBuilder { /* private fields */ }Expand description
Builder for SetContentsSize.
Implementations§
Source§impl SetContentsSizeBuilder
impl SetContentsSizeBuilder
Sourcepub fn window_id<VALUE: Into<WindowId>>(&mut self, value: VALUE) -> &mut Self
pub fn window_id<VALUE: Into<WindowId>>(&mut self, value: VALUE) -> &mut Self
Browser window id.
Sourcepub fn width<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn width<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The window contents width in DIP. Assumes current width if omitted. Must be specified if ‘height’ is omitted.
Sourcepub fn height<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn height<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The window contents height in DIP. Assumes current height if omitted. Must be specified if ‘width’ is omitted.
Sourcepub fn build(&self) -> Result<SetContentsSize, SetContentsSizeBuilderError>
pub fn build(&self) -> Result<SetContentsSize, SetContentsSizeBuilderError>
Trait Implementations§
Source§impl Clone for SetContentsSizeBuilder
impl Clone for SetContentsSizeBuilder
Source§fn clone(&self) -> SetContentsSizeBuilder
fn clone(&self) -> SetContentsSizeBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetContentsSizeBuilder
impl RefUnwindSafe for SetContentsSizeBuilder
impl Send for SetContentsSizeBuilder
impl Sync for SetContentsSizeBuilder
impl Unpin for SetContentsSizeBuilder
impl UnsafeUnpin for SetContentsSizeBuilder
impl UnwindSafe for SetContentsSizeBuilder
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