pub fn size(&self) -> Size {
        let root = self.tree.root();
        let rect = match *root.borrow() {
            usvg::NodeKind::Svg(svg) => {
                let s = svg.size;
                Size::new(s.width(), s.height())
            }
            _ => {
                tracing::error!(
                    "this SVG has no size. It is expected that usvg always adds a size"
                );
                Size::ZERO
            }
        };
        rect
    }
/// Get the size of the svg. This is the size that the svg requests to be drawn. If it is
/// different from the viewbox size, then scaling will be required.
Get the size of the svg. This is the size that the svg requests to be drawn. If it is
different from the viewbox size, then scaling will be required.
Get the size of the svg . This is the size that the svg requests to be drawn . If it is different from the viewbox size then scaling will be required .
pub fn size(&self) -> Size {
        let root = self.tree.root();
        let rect = match *root.borrow() {
            usvg::NodeKind::Svg(svg) => {
                let s = svg.size;
                Size::new(s.width(), s.height())
            }
            _ => {
                tracing::error!(
                    "this SVG has no size. It is expected that usvg always adds a size"
                );
                Size::ZERO
            }
        };
        rect
    }
pub fn size ( & self ) -> Size { let root = self . tree . root ( ) ; let rect = match * root . borrow ( ) { usvg :: NodeKind :: Svg ( svg ) => { let s = svg . size ; Size :: new ( s . width ( ) , s . height ( ) ) } _ => { tracing :: error ! ( " " ) ; Size :: ZERO } } ; rect }
Get the size of the svg.
Get the size of the svg .
&self
&self