pub struct ValidatedSvgRenderContextA1(/* private fields */);Expand description
Validated, immutable SVG render context shared across direct typed renderers.
Implementations§
Source§impl ValidatedSvgRenderContextA1
impl ValidatedSvgRenderContextA1
pub fn defaults() -> Self
pub const fn profile(&self) -> SvgProfile
pub fn background(&self) -> &SvgBackground
pub fn fallback_style(&self) -> &SvgStyleOverride
pub fn semantic_style(&self, role: SvgSemanticRole) -> Option<&SvgStyleOverride>
pub fn layer_styles(&self) -> &[(LayerPattern, SvgStyleOverride)]
pub fn operation_style( &self, kind: PlotterOperationKind, ) -> Option<&SvgStyleOverride>
pub fn primitive_style( &self, class: SvgPrimitiveClass, ) -> Option<&SvgStyleOverride>
pub fn remap_color<'a>(&'a self, color: &'a SvgColor) -> &'a SvgColor
pub fn layer_selection(&self) -> &LayerSelection
pub const fn visibility(&self) -> SvgVisibility
pub const fn identity_mode(&self) -> SvgIdentityMode
pub fn font_face_override(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ValidatedSvgRenderContextA1
impl Clone for ValidatedSvgRenderContextA1
Source§fn clone(&self) -> ValidatedSvgRenderContextA1
fn clone(&self) -> ValidatedSvgRenderContextA1
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 Debug for ValidatedSvgRenderContextA1
impl Debug for ValidatedSvgRenderContextA1
impl StructuralPartialEq for ValidatedSvgRenderContextA1
Auto Trait Implementations§
impl Freeze for ValidatedSvgRenderContextA1
impl RefUnwindSafe for ValidatedSvgRenderContextA1
impl Send for ValidatedSvgRenderContextA1
impl Sync for ValidatedSvgRenderContextA1
impl Unpin for ValidatedSvgRenderContextA1
impl UnsafeUnpin for ValidatedSvgRenderContextA1
impl UnwindSafe for ValidatedSvgRenderContextA1
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