[−][src]Struct vega_lite_3::SelectionConfigBuilder
Builder for SelectionConfig
.
Methods
impl SelectionConfigBuilder
[src]
pub fn interval<VALUE: Into<IntervalSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The default definition for an
interval
selection. All
properties and transformations
for an interval selection definition (except type
) may be specified here.
For instance, setting interval
to {"translate": false}
disables the ability to move
interval selections by default.
pub fn multi<VALUE: Into<MultiSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The default definition for a
multi
selection. All
properties and transformations
for a multi selection definition (except type
) may be specified here.
For instance, setting multi
to {"toggle": "event.altKey"}
adds additional values to
multi selections when clicking with the alt-key pressed by default.
pub fn single<VALUE: Into<SingleSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The default definition for a
single
selection. All
properties and transformations
for a single selection definition (except type
) may be specified here.
For instance, setting single
to {"on": "dblclick"}
populates single selections on
double-click by default.
pub fn build(&self) -> Result<SelectionConfig, String>
[src]
Trait Implementations
impl Clone for SelectionConfigBuilder
[src]
fn clone(&self) -> SelectionConfigBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SelectionConfigBuilder
[src]
fn default() -> SelectionConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SelectionConfigBuilder
impl Send for SelectionConfigBuilder
impl Sync for SelectionConfigBuilder
impl Unpin for SelectionConfigBuilder
impl UnwindSafe for SelectionConfigBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,