[][src]Trait ytesrev::drawable::KnownSize

pub trait KnownSize: Drawable {
    fn width(&self) -> usize;
fn height(&self) -> usize; }

An object that has a determined size, like an image, but not a solid that can fit any shape it's called with

Required methods

fn width(&self) -> usize

The width of the object

fn height(&self) -> usize

The height of the object

Loading content...

Implementors

impl KnownSize for PngImage[src]

impl KnownSize for LatexObj[src]

impl KnownSize for Stack[src]

impl<T: Drawable + KnownSize> KnownSize for Anchor<T>[src]

impl<T: Drawable + KnownSize> KnownSize for Margin<T>[src]

impl<T: Drawable> KnownSize for WithSize<T>[src]

impl<T: ImageContainer + KnownSize> KnownSize for Ditherer<T>[src]

Loading content...