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) -> FacetSpec
pub fn row(values: CategoryValues) -> FacetSpec
Split the plot into rows by one categorical dimension.
Sourcepub fn column(values: CategoryValues) -> FacetSpec
pub fn column(values: CategoryValues) -> FacetSpec
Split the plot into columns by one categorical dimension.
Sourcepub fn grid(
row: CategoryValues,
column: CategoryValues,
) -> Result<FacetSpec, Error>
pub fn grid( row: CategoryValues, column: CategoryValues, ) -> Result<FacetSpec, Error>
Split the plot into a row-by-column grid.
Sourcepub fn wrap(values: CategoryValues, columns: usize) -> Result<FacetSpec, Error>
pub fn wrap(values: CategoryValues, columns: usize) -> Result<FacetSpec, Error>
Wrap one categorical dimension into a positive number of columns.
Sourcepub const fn scales(self, scales: FacetScales) -> FacetSpec
pub const fn scales(self, scales: FacetScales) -> FacetSpec
Configure whether facet panels share numeric axes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FacetSpec
impl Freeze for FacetSpecwhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
*const ArcInner<[u32]> is !null: Freeze,
PhantomData<ArcInner<[u32]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<KeyValues> is !null: Freeze,
PhantomData<ArcInner<KeyValues>>: Freeze,
*const ArcInner<(RawKey, Arc<str>)> is !null: Freeze,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
impl Move for FacetSpec
impl RefUnwindSafe for FacetSpec
impl Send for FacetSpec
impl Sync for FacetSpec
impl Unpin for FacetSpec
impl UnsafeUnpin for FacetSpecwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
*const ArcInner<[u32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u32]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<KeyValues> is !null: UnsafeUnpin,
PhantomData<ArcInner<KeyValues>>: UnsafeUnpin,
*const ArcInner<(RawKey, Arc<str>)> is !null: UnsafeUnpin,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
impl UnwindSafe for FacetSpecwhere
Arc<str>: UnwindSafe,
Arc<[String]>: UnwindSafe,
Arc<[u32]>: UnwindSafe,
Arc<[u64]>: UnwindSafe,
Arc<KeyValues>: UnwindSafe,
Arc<(RawKey, Arc<str>)>: UnwindSafe,
Arc<SourceInfo>: UnwindSafe,
Arc<SourceProjection>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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.