pub struct SvgAnnotation {
pub id: String,
pub x: f32,
pub y: f32,
pub text: String,
}Expand description
A host-provided, non-semantic annotation to place on top of rendered SVG.
Coordinates are in the SVG viewport’s pixel coordinate system. The renderer does not
interpret id or text; this keeps domain-specific analysis outside acorde-render-svg.
Fields§
§id: StringStable identifier within one rendered score.
x: f32§y: f32§text: StringTrait Implementations§
Source§impl Clone for SvgAnnotation
impl Clone for SvgAnnotation
Source§impl Debug for SvgAnnotation
impl Debug for SvgAnnotation
Source§impl<'de> Deserialize<'de> for SvgAnnotation
impl<'de> Deserialize<'de> for SvgAnnotation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SvgAnnotation
impl PartialEq for SvgAnnotation
Source§impl Serialize for SvgAnnotation
impl Serialize for SvgAnnotation
impl StructuralPartialEq for SvgAnnotation
Auto Trait Implementations§
impl Freeze for SvgAnnotation
impl RefUnwindSafe for SvgAnnotation
impl Send for SvgAnnotation
impl Sync for SvgAnnotation
impl Unpin for SvgAnnotation
impl UnsafeUnpin for SvgAnnotation
impl UnwindSafe for SvgAnnotation
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