pub struct CompareInfoBuilder { /* private fields */ }Expand description
Builder for CompareInfo.
Implementations§
Source§impl CompareInfoBuilder
impl CompareInfoBuilder
Sourcepub fn command_buffer<VALUE: Into<CommandBuffer>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn command_buffer<VALUE: Into<CommandBuffer>>( &mut self, value: VALUE, ) -> &mut Self
The command buffer to record drawing commands into.
Sourcepub fn divider_position<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn divider_position<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
The horizontal position of the divider, in the range [0.0, 1.0].
Sourcepub fn divider_width<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn divider_width<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
The width of the divider line in pixels.
Sourcepub fn divider_color<VALUE: Into<Color>>(&mut self, value: VALUE) -> &mut Self
pub fn divider_color<VALUE: Into<Color>>(&mut self, value: VALUE) -> &mut Self
The color of the divider line.
Sourcepub fn build(&self) -> Result<CompareInfo, CompareInfoBuilderError>
pub fn build(&self) -> Result<CompareInfo, CompareInfoBuilderError>
Trait Implementations§
Source§impl Clone for CompareInfoBuilder
impl Clone for CompareInfoBuilder
Source§fn clone(&self) -> CompareInfoBuilder
fn clone(&self) -> CompareInfoBuilder
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 CompareInfoBuilder
impl RefUnwindSafe for CompareInfoBuilder
impl Send for CompareInfoBuilder
impl Sync for CompareInfoBuilder
impl Unpin for CompareInfoBuilder
impl UnwindSafe for CompareInfoBuilder
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