Struct libreda_db::reference_access::ShapeRef
source · [−]pub struct ShapeRef<'a, L: LayoutBase + ?Sized> {
pub(super) base: &'a L,
pub(super) id: L::ShapeId,
}
Expand description
Reference to a shape.
Fields
base: &'a L
Reference to the parent data structure.
id: L::ShapeId
ID of the shape.
Implementations
sourceimpl<'a, L: LayoutBase> ShapeRef<'a, L>
impl<'a, L: LayoutBase> ShapeRef<'a, L>
sourcepub fn geometry_cloned(&self) -> Geometry<L::Coord>
pub fn geometry_cloned(&self) -> Geometry<L::Coord>
Get the cloned geometry struct representing this shape.
Auto Trait Implementations
impl<'a, L: ?Sized> RefUnwindSafe for ShapeRef<'a, L> where
L: RefUnwindSafe,
<L as LayoutBase>::ShapeId: RefUnwindSafe,
impl<'a, L: ?Sized> Send for ShapeRef<'a, L> where
L: Sync,
<L as LayoutBase>::ShapeId: Send,
impl<'a, L: ?Sized> Sync for ShapeRef<'a, L> where
L: Sync,
<L as LayoutBase>::ShapeId: Sync,
impl<'a, L: ?Sized> Unpin for ShapeRef<'a, L> where
<L as LayoutBase>::ShapeId: Unpin,
impl<'a, L: ?Sized> UnwindSafe for ShapeRef<'a, L> where
L: RefUnwindSafe,
<L as LayoutBase>::ShapeId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more