pub struct SymbolicCircle { /* private fields */ }Expand description
A 2D circle/arc for symbolic representations
Implementations§
Source§impl SymbolicCircle
impl SymbolicCircle
pub fn express_id(&self) -> u32
pub fn ifc_type(&self) -> String
pub fn center_x(&self) -> f32
pub fn center_y(&self) -> f32
pub fn radius(&self) -> f32
pub fn start_angle(&self) -> f32
pub fn end_angle(&self) -> f32
pub fn rep_identifier(&self) -> String
Sourcepub fn is_full_circle(&self) -> bool
pub fn is_full_circle(&self) -> bool
Check if this is a full circle
Trait Implementations§
Source§impl From<SymbolicCircle> for JsValue
impl From<SymbolicCircle> for JsValue
Source§fn from(value: SymbolicCircle) -> Self
fn from(value: SymbolicCircle) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SymbolicCircle
impl FromWasmAbi for SymbolicCircle
Source§impl IntoWasmAbi for SymbolicCircle
impl IntoWasmAbi for SymbolicCircle
Source§impl LongRefFromWasmAbi for SymbolicCircle
impl LongRefFromWasmAbi for SymbolicCircle
Source§type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SymbolicCircle>
type Anchor = RcRef<SymbolicCircle>
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 SymbolicCircle
impl OptionFromWasmAbi for SymbolicCircle
Source§impl OptionIntoWasmAbi for SymbolicCircle
impl OptionIntoWasmAbi for SymbolicCircle
Source§impl RefFromWasmAbi for SymbolicCircle
impl RefFromWasmAbi for SymbolicCircle
Source§type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SymbolicCircle>
type Anchor = RcRef<SymbolicCircle>
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 SymbolicCircle
impl RefMutFromWasmAbi for SymbolicCircle
Source§type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
type Abi = WasmPtr<WasmRefCell<SymbolicCircle>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SymbolicCircle>
type Anchor = RcRefMut<SymbolicCircle>
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 SymbolicCircle
impl TryFromJsValue for SymbolicCircle
Source§impl VectorFromWasmAbi for SymbolicCircle
impl VectorFromWasmAbi for SymbolicCircle
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SymbolicCircle]>
Source§impl VectorIntoWasmAbi for SymbolicCircle
impl VectorIntoWasmAbi for SymbolicCircle
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SymbolicCircle]>) -> Self::Abi
Source§impl WasmDescribeVector for SymbolicCircle
impl WasmDescribeVector for SymbolicCircle
impl SupportsConstructor for SymbolicCircle
impl SupportsInstanceProperty for SymbolicCircle
impl SupportsStaticProperty for SymbolicCircle
Auto Trait Implementations§
impl Freeze for SymbolicCircle
impl RefUnwindSafe for SymbolicCircle
impl Send for SymbolicCircle
impl Sync for SymbolicCircle
impl Unpin for SymbolicCircle
impl UnwindSafe for SymbolicCircle
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.