pub struct Object {
pub area: Rectangle,
pub contents: Vec<Content>,
}
Fields§
§area: Rectangle
§contents: Vec<Content>
Implementations§
Source§impl Object
impl Object
pub fn empty() -> Self
pub fn add_object(&mut self, obj: &Rc<Self>)
pub fn rc(self) -> Rc<Self>
pub fn plot_with_transform(&self, h: &Homography, pl: &mut Plot)
pub fn plot(&self, pl: &mut Plot)
pub fn transformed(self: &Rc<Self>, h: &Homography) -> Rc<Object>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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