#[non_exhaustive]pub enum RecipeFigure {
Show 27 variants
Scatter(Plot<Scatter>),
Histogram(Plot<Histogram>),
Density(Plot<Density>),
Qq(Plot<Qq>),
PointInterval(Plot<PointInterval>),
Line(Plot<Line>),
Trajectory(Plot<Trajectory>),
LinePath(Plot<LinePath>),
Interaction(Plot<Interaction>),
Coefficient(Plot<Coefficient>),
Forest(Plot<Forest>),
Dumbbell(Plot<Dumbbell>),
Heatmap(Plot<Heatmap>),
Bar(Plot<Bar>),
HorizontalBar(Plot<HorizontalBar>),
StackedBar(Plot<StackedBar>),
StackedHorizontalBar(Plot<StackedHorizontalBar>),
Boxplot(Plot<Boxplot>),
Violin(Plot<Violin>),
Raincloud(Plot<Raincloud>),
Regression(Plot<Regression>),
Marginal(Plot<Marginal>),
Matrix(Plot<Matrix>),
Beeswarm(Plot<Beeswarm>),
Waterfall(Plot<Waterfall>),
Canvas(Canvas),
Theme(Box<Theme>),
}Expand description
A rebuilt, editable native figure retains its exact family.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Scatter(Plot<Scatter>)
A native scatter plot.
Histogram(Plot<Histogram>)
A native histogram plot.
Density(Plot<Density>)
A native density plot.
Qq(Plot<Qq>)
A native qq plot.
PointInterval(Plot<PointInterval>)
A native point_interval plot.
Line(Plot<Line>)
A native line plot.
Trajectory(Plot<Trajectory>)
A native trajectory plot.
LinePath(Plot<LinePath>)
A native line_path plot.
Interaction(Plot<Interaction>)
A native interaction plot.
Coefficient(Plot<Coefficient>)
A native coefficient plot.
Forest(Plot<Forest>)
A native forest plot.
Dumbbell(Plot<Dumbbell>)
A native dumbbell plot.
Heatmap(Plot<Heatmap>)
A native heatmap plot.
Bar(Plot<Bar>)
A native bar plot.
HorizontalBar(Plot<HorizontalBar>)
A native horizontal_bar plot.
StackedBar(Plot<StackedBar>)
A native stacked_bar plot.
StackedHorizontalBar(Plot<StackedHorizontalBar>)
A native stacked_horizontal_bar plot.
Boxplot(Plot<Boxplot>)
A native boxplot plot.
Violin(Plot<Violin>)
A native violin plot.
Raincloud(Plot<Raincloud>)
A native raincloud plot.
Regression(Plot<Regression>)
A native regression plot.
Marginal(Plot<Marginal>)
A native marginal plot.
Matrix(Plot<Matrix>)
A native matrix plot.
Beeswarm(Plot<Beeswarm>)
A native beeswarm plot.
Waterfall(Plot<Waterfall>)
A native waterfall plot.
Canvas(Canvas)
A rebuilt editable Canvas grid.
Theme(Box<Theme>)
An independent complete theme declaration.
Implementations§
Source§impl RecipeFigure
impl RecipeFigure
Sourcepub fn compose(
&self,
items: impl IntoIterator<Item = Placement>,
) -> Result<Composite, Error>
pub fn compose( &self, items: impl IntoIterator<Item = Placement>, ) -> Result<Composite, Error>
Compose independently prepared items on this base.
Sourcepub fn compose_with_options(
&self,
items: impl IntoIterator<Item = Placement>,
options: ComposeOptions,
) -> Result<Composite, Error>
pub fn compose_with_options( &self, items: impl IntoIterator<Item = Placement>, options: ComposeOptions, ) -> Result<Composite, Error>
Compose using an explicit viewport policy.
Sourcepub fn compose_with_operation(
&self,
items: impl IntoIterator<Item = Placement>,
options: ComposeOptions,
operation: &OperationOptions,
) -> Result<Composite, Error>
pub fn compose_with_operation( &self, items: impl IntoIterator<Item = Placement>, options: ComposeOptions, operation: &OperationOptions, ) -> Result<Composite, Error>
Compose with this call’s cancellation and viewport policy.
Source§impl RecipeFigure
impl RecipeFigure
Sourcepub fn save_with(
&self,
path: impl AsRef<Path>,
format: impl Into<Format>,
) -> Result<Output, Error>
pub fn save_with( &self, path: impl AsRef<Path>, format: impl Into<Format>, ) -> Result<Output, Error>
Publish one complete image atomically, according to the selected device. The returned Output is the complete immutable scene.
Sourcepub fn save_with_operation(
&self,
path: impl AsRef<Path>,
format: impl Into<Format>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn save_with_operation( &self, path: impl AsRef<Path>, format: impl Into<Format>, options: &OperationOptions, ) -> Result<Output, Error>
Publish a file under one operation, from preparation through install.
Sourcepub fn encode(&self, format: impl Into<Format>) -> Result<Arc<[u8]>, Error>
pub fn encode(&self, format: impl Into<Format>) -> Result<Arc<[u8]>, Error>
Encode a complete device artifact in immutable owned memory.
Sourcepub fn encode_with_operation(
&self,
format: impl Into<Format>,
options: &OperationOptions,
) -> Result<Arc<[u8]>, Error>
pub fn encode_with_operation( &self, format: impl Into<Format>, options: &OperationOptions, ) -> Result<Arc<[u8]>, Error>
Encode in memory under this call’s operation options.
Sourcepub fn write_to(
&self,
writer: &mut dyn Write,
format: impl Into<Format>,
) -> Result<Output, Error>
pub fn write_to( &self, writer: &mut dyn Write, format: impl Into<Format>, ) -> Result<Output, Error>
Write one complete artifact at the writer’s current position. A failed external write may report a confirmed prefix.
Sourcepub fn write_to_with_operation(
&self,
writer: &mut dyn Write,
format: impl Into<Format>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn write_to_with_operation( &self, writer: &mut dyn Write, format: impl Into<Format>, options: &OperationOptions, ) -> Result<Output, Error>
Write to a borrowed stream under one operation.
Sourcepub fn pixels(&self) -> Result<PixelBuffer, Error>
pub fn pixels(&self) -> Result<PixelBuffer, Error>
Read source-sized, straight RGBA8 samples of the complete scene.
Sourcepub fn pixels_with_options(
&self,
options: PixelOptions,
) -> Result<PixelBuffer, Error>
pub fn pixels_with_options( &self, options: PixelOptions, ) -> Result<PixelBuffer, Error>
Read immutable samples with explicit sampling and representation.
Sourcepub fn pixels_with_options_with_operation(
&self,
options: PixelOptions,
operation_options: &OperationOptions,
) -> Result<PixelBuffer, Error>
pub fn pixels_with_options_with_operation( &self, options: PixelOptions, operation_options: &OperationOptions, ) -> Result<PixelBuffer, Error>
Read immutable samples using this call’s operation options.
Sourcepub fn pixels_into(&self, target: PixelTarget<'_>) -> Result<(), Error>
pub fn pixels_into(&self, target: PixelTarget<'_>) -> Result<(), Error>
Fill the actual logical pixels of a caller-owned buffer.
Sourcepub fn pixels_into_with_options(
&self,
target: PixelTarget<'_>,
options: PixelOptions,
) -> Result<(), Error>
pub fn pixels_into_with_options( &self, target: PixelTarget<'_>, options: PixelOptions, ) -> Result<(), Error>
Fill a caller-owned target using the requested pixel options.
Sourcepub fn pixels_into_with_options_with_operation(
&self,
target: PixelTarget<'_>,
options: PixelOptions,
operation_options: &OperationOptions,
) -> Result<(), Error>
pub fn pixels_into_with_options_with_operation( &self, target: PixelTarget<'_>, options: PixelOptions, operation_options: &OperationOptions, ) -> Result<(), Error>
Fill a caller-owned target in one cancellable operation.
Source§impl RecipeFigure
impl RecipeFigure
Sourcepub const fn kind(&self) -> Option<PlotKind>
pub const fn kind(&self) -> Option<PlotKind>
Inspect the actual plot family, if this declaration is a plot.
Sourcepub fn preflight_with_operation(
&self,
options: &OperationOptions,
) -> Result<(), Error>
pub fn preflight_with_operation( &self, options: &OperationOptions, ) -> Result<(), Error>
Perform this operation using the caller’s cancellation options.
Sourcepub fn layout_report(&self) -> Result<LayoutReport, Error>
pub fn layout_report(&self) -> Result<LayoutReport, Error>
Read the accepted native layout.
Sourcepub fn layout_report_with_operation(
&self,
options: &OperationOptions,
) -> Result<LayoutReport, Error>
pub fn layout_report_with_operation( &self, options: &OperationOptions, ) -> Result<LayoutReport, Error>
Perform this operation using the caller’s cancellation options.
Sourcepub fn render_with_results(&self) -> Result<RenderWithResults, Error>
pub fn render_with_results(&self) -> Result<RenderWithResults, Error>
Freeze the figure with its same-operation scientific results.
Sourcepub fn render_with_results_with_operation(
&self,
options: &OperationOptions,
) -> Result<RenderWithResults, Error>
pub fn render_with_results_with_operation( &self, options: &OperationOptions, ) -> Result<RenderWithResults, Error>
Perform this operation using the caller’s cancellation options.
Sourcepub fn get_recipe(&self) -> Result<Recipe, Error>
pub fn get_recipe(&self) -> Result<Recipe, Error>
Extract the current editable declaration.
Sourcepub fn get_recipe_with_operation(
&self,
options: &OperationOptions,
) -> Result<Recipe, Error>
pub fn get_recipe_with_operation( &self, options: &OperationOptions, ) -> Result<Recipe, Error>
Perform this operation using the caller’s cancellation options.
Sourcepub fn render_with_operation(
&self,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn render_with_operation( &self, options: &OperationOptions, ) -> Result<Output, Error>
Prepare and freeze under one cancellable operation.
Sourcepub fn svg_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn svg_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output, Error>
Publish with the caller’s cancellation options.
Sourcepub fn svg_preserve_text(&self, path: impl AsRef<Path>) -> Result<Output, Error>
pub fn svg_preserve_text(&self, path: impl AsRef<Path>) -> Result<Output, Error>
Publish SVG retaining selectable text.
Sourcepub fn svg_preserve_text_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn svg_preserve_text_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output, Error>
Publish with the caller’s cancellation options.
Sourcepub fn png(&self, path: impl AsRef<Path>) -> Result<Output, Error>
pub fn png(&self, path: impl AsRef<Path>) -> Result<Output, Error>
Publish the default balanced PNG.
Sourcepub fn png_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn png_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output, Error>
Publish with the caller’s cancellation options.
Sourcepub fn png_preview(&self, path: impl AsRef<Path>) -> Result<Output, Error>
pub fn png_preview(&self, path: impl AsRef<Path>) -> Result<Output, Error>
Publish a source-sized PNG.
Sourcepub fn png_preview_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output, Error>
pub fn png_preview_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output, Error>
Publish with the caller’s cancellation options.
Sourcepub fn png_with_options(
&self,
path: impl AsRef<Path>,
options: PngOptions,
) -> Result<Output, Error>
pub fn png_with_options( &self, path: impl AsRef<Path>, options: PngOptions, ) -> Result<Output, Error>
Publish a PNG with explicit device options.
Sourcepub fn png_with_options_with_operation(
&self,
path: impl AsRef<Path>,
options: PngOptions,
operation: &OperationOptions,
) -> Result<Output, Error>
pub fn png_with_options_with_operation( &self, path: impl AsRef<Path>, options: PngOptions, operation: &OperationOptions, ) -> Result<Output, Error>
Publish a PNG with explicit sampling and operation options.
Sourcepub fn recipe(&self, path: impl AsRef<Path>) -> Result<Recipe, Error>
pub fn recipe(&self, path: impl AsRef<Path>) -> Result<Recipe, Error>
Write the current native declaration and return that same Recipe.
Sourcepub fn recipe_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Recipe, Error>
pub fn recipe_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Recipe, Error>
Extract and write the declaration under one operation.
Trait Implementations§
Source§impl Clone for RecipeFigure
impl Clone for RecipeFigure
Source§fn clone(&self) -> RecipeFigure
fn clone(&self) -> RecipeFigure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl TryFrom<&RecipeFigure> for CompositionSource
impl TryFrom<&RecipeFigure> for CompositionSource
Auto Trait Implementations§
impl !RefUnwindSafe for RecipeFigure
impl !UnwindSafe for RecipeFigure
impl Forget for RecipeFigure
impl Freeze for RecipeFigurewhere
*const ArcInner<()> is !null: Freeze,
PhantomData<ArcInner<()>>: Freeze,
*const ArcInner<String> is !null: Freeze,
PhantomData<ArcInner<String>>: Freeze,
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
*const ArcInner<TextInstructions> is !null: Freeze,
PhantomData<ArcInner<TextInstructions>>: Freeze,
*const ArcInner<SharedPayload> is !null: Freeze,
PhantomData<ArcInner<SharedPayload>>: Freeze,
PhantomData<Scatter>: Freeze,
PhantomData<Histogram>: Freeze,
PhantomData<Density>: Freeze,
PhantomData<Qq>: Freeze,
PhantomData<PointInterval>: Freeze,
PhantomData<Line>: Freeze,
PhantomData<Trajectory>: Freeze,
PhantomData<LinePath>: Freeze,
PhantomData<Interaction>: Freeze,
PhantomData<Coefficient>: Freeze,
PhantomData<Forest>: Freeze,
PhantomData<Dumbbell>: Freeze,
PhantomData<Heatmap>: Freeze,
PhantomData<Bar>: Freeze,
PhantomData<HorizontalBar>: Freeze,
PhantomData<StackedBar>: Freeze,
PhantomData<StackedHorizontalBar>: Freeze,
PhantomData<Boxplot>: Freeze,
PhantomData<Violin>: Freeze,
PhantomData<Raincloud>: Freeze,
PhantomData<Regression>: Freeze,
PhantomData<Marginal>: Freeze,
PhantomData<Matrix>: Freeze,
PhantomData<Beeswarm>: Freeze,
PhantomData<Waterfall>: Freeze,
*const ArcInner<Placements> is !null: Freeze,
PhantomData<ArcInner<Placements>>: Freeze,
*const ArcInner<Vec<Placement>> is !null: Freeze,
PhantomData<ArcInner<Vec<Placement>>>: Freeze,
*const ArcInner<Theme> is !null: Freeze,
PhantomData<ArcInner<Theme>>: Freeze,
*const ArcInner<BTreeMap<String, String>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, String>>>: Freeze,
*const ArcInner<HashMap<RawKey, BTreeMap<String, String>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<RawKey, BTreeMap<String, String>>>>: Freeze,
*const ArcInner<BTreeMap<String, CapturedLabel>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, CapturedLabel>>>: Freeze,
*const ArcInner<BTreeMap<(usize, usize), String>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<(usize, usize), String>>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
*const ArcInner<GridRowLabels> is !null: Freeze,
PhantomData<ArcInner<GridRowLabels>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<CanvasHeader>: Freeze,
PhantomData<Vec<usize>>: Freeze,
*const Theme is !null: Freeze,
PhantomData<Theme>: Freeze,
impl Move for RecipeFigure
impl Send for RecipeFigurewhere
Arc<()>: Send,
Arc<String>: Send,
Arc<Vec<FontFamily>>: Send,
Arc<TextInstructions>: Send,
Arc<SharedPayload>: Send,
Arc<Placements>: Send,
Arc<Vec<Placement>>: Send,
Arc<Theme>: Send,
Arc<BTreeMap<String, String>>: Send,
Arc<HashMap<RawKey, BTreeMap<String, String>>>: Send,
Arc<BTreeMap<String, CapturedLabel>>: Send,
Arc<BTreeMap<(usize, usize), String>>: Send,
Arc<[String]>: Send,
Arc<GridRowLabels>: Send,
RawVecInner: Send,
BoxRaw<Theme>: Send,
impl Sync for RecipeFigurewhere
Arc<()>: Sync,
Arc<String>: Sync,
Arc<Vec<FontFamily>>: Sync,
Arc<TextInstructions>: Sync,
Arc<SharedPayload>: Sync,
Arc<Placements>: Sync,
Arc<Vec<Placement>>: Sync,
Arc<Theme>: Sync,
Arc<BTreeMap<String, String>>: Sync,
Arc<HashMap<RawKey, BTreeMap<String, String>>>: Sync,
Arc<BTreeMap<String, CapturedLabel>>: Sync,
Arc<BTreeMap<(usize, usize), String>>: Sync,
Arc<[String]>: Sync,
Arc<GridRowLabels>: Sync,
RawVecInner: Sync,
BoxRaw<Theme>: Sync,
impl Unpin for RecipeFigurewhere
Arc<()>: Unpin,
Arc<String>: Unpin,
Arc<Vec<FontFamily>>: Unpin,
Arc<TextInstructions>: Unpin,
Arc<SharedPayload>: Unpin,
Arc<Placements>: Unpin,
Arc<Vec<Placement>>: Unpin,
Arc<Theme>: Unpin,
Arc<BTreeMap<String, String>>: Unpin,
Arc<HashMap<RawKey, BTreeMap<String, String>>>: Unpin,
Arc<BTreeMap<String, CapturedLabel>>: Unpin,
Arc<BTreeMap<(usize, usize), String>>: Unpin,
Arc<[String]>: Unpin,
Arc<GridRowLabels>: Unpin,
*const u8 is !null: Unpin,
Box<Theme>: Unpin,
impl UnsafeUnpin for RecipeFigurewhere
*const ArcInner<()> is !null: UnsafeUnpin,
PhantomData<ArcInner<()>>: UnsafeUnpin,
*const ArcInner<String> is !null: UnsafeUnpin,
PhantomData<ArcInner<String>>: UnsafeUnpin,
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
*const ArcInner<TextInstructions> is !null: UnsafeUnpin,
PhantomData<ArcInner<TextInstructions>>: UnsafeUnpin,
*const ArcInner<SharedPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedPayload>>: UnsafeUnpin,
PhantomData<Scatter>: UnsafeUnpin,
PhantomData<Histogram>: UnsafeUnpin,
PhantomData<Density>: UnsafeUnpin,
PhantomData<Qq>: UnsafeUnpin,
PhantomData<PointInterval>: UnsafeUnpin,
PhantomData<Line>: UnsafeUnpin,
PhantomData<Trajectory>: UnsafeUnpin,
PhantomData<LinePath>: UnsafeUnpin,
PhantomData<Interaction>: UnsafeUnpin,
PhantomData<Coefficient>: UnsafeUnpin,
PhantomData<Forest>: UnsafeUnpin,
PhantomData<Dumbbell>: UnsafeUnpin,
PhantomData<Heatmap>: UnsafeUnpin,
PhantomData<Bar>: UnsafeUnpin,
PhantomData<HorizontalBar>: UnsafeUnpin,
PhantomData<StackedBar>: UnsafeUnpin,
PhantomData<StackedHorizontalBar>: UnsafeUnpin,
PhantomData<Boxplot>: UnsafeUnpin,
PhantomData<Violin>: UnsafeUnpin,
PhantomData<Raincloud>: UnsafeUnpin,
PhantomData<Regression>: UnsafeUnpin,
PhantomData<Marginal>: UnsafeUnpin,
PhantomData<Matrix>: UnsafeUnpin,
PhantomData<Beeswarm>: UnsafeUnpin,
PhantomData<Waterfall>: UnsafeUnpin,
*const ArcInner<Placements> is !null: UnsafeUnpin,
PhantomData<ArcInner<Placements>>: UnsafeUnpin,
*const ArcInner<Vec<Placement>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Placement>>>: UnsafeUnpin,
*const ArcInner<Theme> is !null: UnsafeUnpin,
PhantomData<ArcInner<Theme>>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, String>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, String>>>: UnsafeUnpin,
*const ArcInner<HashMap<RawKey, BTreeMap<String, String>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<RawKey, BTreeMap<String, String>>>>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, CapturedLabel>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, CapturedLabel>>>: UnsafeUnpin,
*const ArcInner<BTreeMap<(usize, usize), String>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<(usize, usize), String>>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
*const ArcInner<GridRowLabels> is !null: UnsafeUnpin,
PhantomData<ArcInner<GridRowLabels>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<CanvasHeader>: UnsafeUnpin,
PhantomData<Vec<usize>>: UnsafeUnpin,
*const Theme is !null: UnsafeUnpin,
PhantomData<Theme>: UnsafeUnpin,
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.