Struct vega_lite_4::AutoSizeParamsBuilder
source · pub struct AutoSizeParamsBuilder { /* private fields */ }
Expand description
Builder for AutoSizeParams
.
Implementations§
source§impl AutoSizeParamsBuilder
impl AutoSizeParamsBuilder
sourcepub fn contains<VALUE: Into<Contains>>(&mut self, value: VALUE) -> &mut Self
pub fn contains<VALUE: Into<Contains>>(&mut self, value: VALUE) -> &mut Self
Determines how size calculation should be performed, one of "content"
or "padding"
.
The default setting ("content"
) interprets the width and height settings as the data
rectangle (plotting) dimensions, to which padding is then added. In contrast, the
"padding"
setting includes the padding within the view size calculations, such that the
width and height settings indicate the total intended size of the view.
Default value: "content"
sourcepub fn resize<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn resize<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
A boolean flag indicating if autosize layout should be re-calculated on every view update.
Default value: false
sourcepub fn auto_size_params_type<VALUE: Into<AutosizeType>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn auto_size_params_type<VALUE: Into<AutosizeType>>( &mut self, value: VALUE ) -> &mut Self
The sizing format type. One of "pad"
, "fit"
, "fit-x"
, "fit-y"
, or "none"
. See
the autosize type
documentation for descriptions of each.
Default value: "pad"
sourcepub fn build(&self) -> Result<AutoSizeParams, AutoSizeParamsBuilderError>
pub fn build(&self) -> Result<AutoSizeParams, AutoSizeParamsBuilderError>
Trait Implementations§
source§impl Clone for AutoSizeParamsBuilder
impl Clone for AutoSizeParamsBuilder
source§fn clone(&self) -> AutoSizeParamsBuilder
fn clone(&self) -> AutoSizeParamsBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for AutoSizeParamsBuilder
impl Send for AutoSizeParamsBuilder
impl Sync for AutoSizeParamsBuilder
impl Unpin for AutoSizeParamsBuilder
impl UnwindSafe for AutoSizeParamsBuilder
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