pub struct SymbolicPolyline { /* private fields */ }Expand description
A single 2D polyline for symbolic representations (Plan, Annotation, FootPrint) Points are stored as [x1, y1, x2, y2, …] in 2D coordinates
Implementations§
Source§impl SymbolicPolyline
impl SymbolicPolyline
Sourcepub fn express_id(&self) -> u32
pub fn express_id(&self) -> u32
Get express ID of the parent element
Sourcepub fn points(&self) -> Float32Array
pub fn points(&self) -> Float32Array
Get 2D points as Float32Array [x1, y1, x2, y2, …]
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Get number of points
Sourcepub fn rep_identifier(&self) -> String
pub fn rep_identifier(&self) -> String
Get representation identifier (“Plan”, “Annotation”, “FootPrint”, “Axis”)
Trait Implementations§
Source§impl From<SymbolicPolyline> for JsValue
impl From<SymbolicPolyline> for JsValue
Source§fn from(value: SymbolicPolyline) -> Self
fn from(value: SymbolicPolyline) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SymbolicPolyline
impl FromWasmAbi for SymbolicPolyline
Source§impl IntoWasmAbi for SymbolicPolyline
impl IntoWasmAbi for SymbolicPolyline
Source§impl LongRefFromWasmAbi for SymbolicPolyline
impl LongRefFromWasmAbi for SymbolicPolyline
Source§type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SymbolicPolyline>
type Anchor = RcRef<SymbolicPolyline>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for SymbolicPolyline
impl OptionFromWasmAbi for SymbolicPolyline
Source§impl OptionIntoWasmAbi for SymbolicPolyline
impl OptionIntoWasmAbi for SymbolicPolyline
Source§impl RefFromWasmAbi for SymbolicPolyline
impl RefFromWasmAbi for SymbolicPolyline
Source§type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SymbolicPolyline>
type Anchor = RcRef<SymbolicPolyline>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SymbolicPolyline
impl RefMutFromWasmAbi for SymbolicPolyline
Source§type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
type Abi = WasmPtr<WasmRefCell<SymbolicPolyline>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SymbolicPolyline>
type Anchor = RcRefMut<SymbolicPolyline>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for SymbolicPolyline
impl TryFromJsValue for SymbolicPolyline
Source§impl VectorFromWasmAbi for SymbolicPolyline
impl VectorFromWasmAbi for SymbolicPolyline
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SymbolicPolyline]>
Source§impl VectorIntoWasmAbi for SymbolicPolyline
impl VectorIntoWasmAbi for SymbolicPolyline
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SymbolicPolyline]>) -> Self::Abi
Source§impl WasmDescribeVector for SymbolicPolyline
impl WasmDescribeVector for SymbolicPolyline
impl SupportsConstructor for SymbolicPolyline
impl SupportsInstanceProperty for SymbolicPolyline
impl SupportsStaticProperty for SymbolicPolyline
Auto Trait Implementations§
impl Freeze for SymbolicPolyline
impl RefUnwindSafe for SymbolicPolyline
impl Send for SymbolicPolyline
impl Sync for SymbolicPolyline
impl Unpin for SymbolicPolyline
impl UnwindSafe for SymbolicPolyline
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.§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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.