pub struct Callout {
pub name: String,
pub plane: Option<Frame>,
pub polylines: Vec<Vec<Point>>,
pub annotates: Option<Annotated>,
}Expand description
One drawn annotation: the geometry a viewer puts on the screen.
Presentation PMI, as against the semantic kind above. The two are
separate on purpose and in the file: the semantic annotation says a
tolerance is 0.1 and controls this face, and the presentation says where
its frame and leader are drawn. Neither derives from the other (a drawing
places its callouts where a draughtsman put them), so a document that
wants both carries both, and Callout::annotates is the link between.
Fields§
§name: StringThe name the file gave it, which is how a drawing names its own
annotations: Flatness.1, Linear Size.3.
plane: Option<Frame>The plane the annotation is drawn in, where the file stated one.
polylines: Vec<Vec<Point>>The drawn geometry: polylines, in the part’s own coordinates.
annotates: Option<Annotated>Which semantic annotation this draws, where the file said.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Callout
impl RefUnwindSafe for Callout
impl Send for Callout
impl Sync for Callout
impl Unpin for Callout
impl UnsafeUnpin for Callout
impl UnwindSafe for Callout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.