pub struct FacetSpec { /* private fields */ }Expand description
One complete generic-facet layout and numeric-axis sharing policy.
A facet is either a row, a column, a row-by-column grid, or one wrapped
categorical dimension. Mixed grid and wrap layouts are not representable,
and numeric axes are fixed unless Self::scales selects otherwise.
Implementations§
Source§impl FacetSpec
impl FacetSpec
Sourcepub fn row(values: CategoryValues) -> Self
pub fn row(values: CategoryValues) -> Self
Split the plot into rows by one categorical dimension.
Sourcepub fn column(values: CategoryValues) -> Self
pub fn column(values: CategoryValues) -> Self
Split the plot into columns by one categorical dimension.
Sourcepub fn grid(row: CategoryValues, column: CategoryValues) -> Result<Self, Error>
pub fn grid(row: CategoryValues, column: CategoryValues) -> Result<Self, Error>
Split the plot into a row-by-column grid.
Sourcepub fn wrap(values: CategoryValues, columns: usize) -> Result<Self, Error>
pub fn wrap(values: CategoryValues, columns: usize) -> Result<Self, Error>
Wrap one categorical dimension into a positive number of columns.
Sourcepub const fn scales(self, scales: FacetScales) -> Self
pub const fn scales(self, scales: FacetScales) -> Self
Configure whether facet panels share numeric axes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FacetSpec
impl Freeze for FacetSpec
impl Move for FacetSpec
impl RefUnwindSafe for FacetSpec
impl Send for FacetSpec
impl Sync for FacetSpec
impl Unpin for FacetSpec
impl UnsafeUnpin for FacetSpec
impl UnwindSafe for FacetSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.