pub struct PointLayerAdapter<'source> { /* private fields */ }Expand description
An independent native point layer with its own optional array label context.
Implementations§
Source§impl<'source> PointLayerAdapter<'source>
impl<'source> PointLayerAdapter<'source>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Snapshot coordinates independently of the parent line’s record count.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind coordinates and retain only this layer’s source for later labels.
Sourcepub fn labels(self, labels: impl CategoryInput) -> Result<Self, AdapterError>
pub fn labels(self, labels: impl CategoryInput) -> Result<Self, AdapterError>
Bind labels against the layer’s own coordinates, not the parent source.
Sourcepub fn radius(self, radius: u32) -> Result<Self>
pub fn radius(self, radius: u32) -> Result<Self>
Replace the radius, retaining the native result/error type.
Sourcepub fn alpha(self, alpha: f64) -> Result<Self, AdapterError>
pub fn alpha(self, alpha: f64) -> Result<Self, AdapterError>
Override point/label alpha with a finite opacity coefficient.
Sourcepub fn legend_label(self, label: impl Into<Text>) -> Self
pub fn legend_label(self, label: impl Into<Text>) -> Self
Supply a complete-layer legend identity, independently of point labels.
Sourcepub fn clear_legend_label_style(self) -> Self
pub fn clear_legend_label_style(self) -> Self
Remove the legend label’s local style through the native slot operation.
Sourcepub fn clear_legend_label_layout(self) -> Self
pub fn clear_legend_label_layout(self) -> Self
Remove the legend label’s local layout through the native slot operation.
Sourcepub fn label_text_layout(self, layout: TextLayout) -> Self
pub fn label_text_layout(self, layout: TextLayout) -> Self
Replace native label layout.
Sourcepub fn get_radius(&self) -> Option<u32>
pub fn get_radius(&self) -> Option<u32>
Inspect the native radius override.
Trait Implementations§
Source§impl<'source> Clone for PointLayerAdapter<'source>
impl<'source> Clone for PointLayerAdapter<'source>
Source§impl From<PointLayerAdapter<'_>> for PointLayer
impl From<PointLayerAdapter<'_>> for PointLayer
Source§fn from(adapter: PointLayerAdapter<'_>) -> Self
fn from(adapter: PointLayerAdapter<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'source> !RefUnwindSafe for PointLayerAdapter<'source>
impl<'source> !Send for PointLayerAdapter<'source>
impl<'source> !Sync for PointLayerAdapter<'source>
impl<'source> !UnwindSafe for PointLayerAdapter<'source>
impl<'source> Forget for PointLayerAdapter<'source>
impl<'source> Freeze for PointLayerAdapter<'source>where
*const ArcInner<()> is !null: Freeze,
PhantomData<ArcInner<()>>: Freeze,
*const ArcInner<TextInstructions> is !null: Freeze,
PhantomData<ArcInner<TextInstructions>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[f64]> is !null: Freeze,
PhantomData<ArcInner<[f64]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: 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,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
*const ArcInner<[u32]> is !null: Freeze,
PhantomData<ArcInner<[u32]>>: Freeze,
*const ArcInner<KeyValues> is !null: Freeze,
PhantomData<ArcInner<KeyValues>>: Freeze,
*const ArcInner<String> is !null: Freeze,
PhantomData<ArcInner<String>>: Freeze,
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
*const RcInner<dyn ArraySource + 'source> is !null: Freeze,
PhantomData<RcInner<dyn ArraySource + 'source>>: Freeze,
impl<'source> Move for PointLayerAdapter<'source>
impl<'source> Unpin for PointLayerAdapter<'source>where
Arc<()>: Unpin,
Arc<TextInstructions>: Unpin,
Arc<str>: Unpin,
Arc<[f64]>: Unpin,
Arc<[u64]>: Unpin,
Arc<(RawKey, Arc<str>)>: Unpin,
Arc<SourceInfo>: Unpin,
Arc<SourceProjection>: Unpin,
Arc<[String]>: Unpin,
Arc<[u32]>: Unpin,
Arc<KeyValues>: Unpin,
Arc<String>: Unpin,
Arc<Vec<FontFamily>>: Unpin,
Rc<dyn ArraySource + 'source>: Unpin,
impl<'source> UnsafeUnpin for PointLayerAdapter<'source>where
*const ArcInner<()> is !null: UnsafeUnpin,
PhantomData<ArcInner<()>>: UnsafeUnpin,
*const ArcInner<TextInstructions> is !null: UnsafeUnpin,
PhantomData<ArcInner<TextInstructions>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: 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,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
*const ArcInner<[u32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u32]>>: UnsafeUnpin,
*const ArcInner<KeyValues> is !null: UnsafeUnpin,
PhantomData<ArcInner<KeyValues>>: UnsafeUnpin,
*const ArcInner<String> is !null: UnsafeUnpin,
PhantomData<ArcInner<String>>: UnsafeUnpin,
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
*const RcInner<dyn ArraySource + 'source> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ArraySource + 'source>>: 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
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.