pub struct VisualLayer<'a> {
pub id: LayerId,
pub label: String,
pub visible: bool,
pub primitive: VisualPrimitive<'a>,
pub style: VisualStyle,
}Expand description
One named visual primitive and its presentation state.
Fields§
§id: LayerIdStable layer identifier.
label: StringHuman-readable label.
visible: boolWhether the layer should be rendered.
primitive: VisualPrimitive<'a>Borrowed geometry.
style: VisualStylePrimitive style.
Implementations§
Source§impl<'a> VisualLayer<'a>
impl<'a> VisualLayer<'a>
Sourcepub fn try_new(
id: LayerId,
label: impl Into<String>,
primitive: VisualPrimitive<'a>,
style: VisualStyle,
) -> VizResult<Self>
pub fn try_new( id: LayerId, label: impl Into<String>, primitive: VisualPrimitive<'a>, style: VisualStyle, ) -> VizResult<Self>
Creates a visible layer and validates style/geometry compatibility.
Trait Implementations§
Source§impl<'a> Clone for VisualLayer<'a>
impl<'a> Clone for VisualLayer<'a>
Source§fn clone(&self) -> VisualLayer<'a>
fn clone(&self) -> VisualLayer<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for VisualLayer<'a>
impl<'a> Debug for VisualLayer<'a>
Source§impl<'a> PartialEq for VisualLayer<'a>
impl<'a> PartialEq for VisualLayer<'a>
Source§fn eq(&self, other: &VisualLayer<'a>) -> bool
fn eq(&self, other: &VisualLayer<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for VisualLayer<'a>
Auto Trait Implementations§
impl<'a> Freeze for VisualLayer<'a>
impl<'a> RefUnwindSafe for VisualLayer<'a>
impl<'a> Send for VisualLayer<'a>
impl<'a> Sync for VisualLayer<'a>
impl<'a> Unpin for VisualLayer<'a>
impl<'a> UnsafeUnpin for VisualLayer<'a>
impl<'a> UnwindSafe for VisualLayer<'a>
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