pub struct ViewBox {
pub x: f64,
pub y: f64,
pub w: f64,
pub h: f64,
}
Expand description
Representation of the <viewBox>
type.
Fields§
§x: f64
§y: f64
§w: f64
§h: f64
Implementations§
Trait Implementations§
Source§impl From<ViewBox> for AttributeValue
impl From<ViewBox> for AttributeValue
Source§impl WriteBuffer for ViewBox
impl WriteBuffer for ViewBox
Source§fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the
Vec<u8>
buffer using specified WriteOptions
.Source§fn write_buf(&self, buf: &mut Vec<u8>)
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the
Vec<u8>
buffer using default WriteOptions
.Source§fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>where
Self: Sized,
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>where
Self: Sized,
Returns an object that implements
fmt::Display
using provided write options.impl Copy for ViewBox
impl StructuralPartialEq for ViewBox
Auto Trait Implementations§
impl Freeze for ViewBox
impl RefUnwindSafe for ViewBox
impl Send for ViewBox
impl Sync for ViewBox
impl Unpin for ViewBox
impl UnwindSafe for ViewBox
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