Struct kurbo::ConstPoint
source · pub struct ConstPoint(_);
Expand description
A trivial “curve” that is just a constant.
Implementations§
Trait Implementations§
source§impl Clone for ConstPoint
impl Clone for ConstPoint
source§fn clone(&self) -> ConstPoint
fn clone(&self) -> ConstPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstPoint
impl Debug for ConstPoint
source§impl<'de> Deserialize<'de> for ConstPoint
impl<'de> Deserialize<'de> for ConstPoint
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for ConstPoint
impl JsonSchema for ConstPoint
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl ParamCurve for ConstPoint
impl ParamCurve for ConstPoint
source§fn subsegment(&self, _range: Range<f64>) -> ConstPoint
fn subsegment(&self, _range: Range<f64>) -> ConstPoint
Get a subsegment of the curve for the given parameter range.
source§fn subdivide(&self) -> (Self, Self)
fn subdivide(&self) -> (Self, Self)
Subdivide into (roughly) halves.
source§impl ParamCurveArclen for ConstPoint
impl ParamCurveArclen for ConstPoint
source§impl ParamCurveDeriv for ConstPoint
impl ParamCurveDeriv for ConstPoint
§type DerivResult = ConstPoint
type DerivResult = ConstPoint
The parametric curve obtained by taking the derivative of this one.
source§fn deriv(&self) -> ConstPoint
fn deriv(&self) -> ConstPoint
The derivative of the curve. Read more
source§impl Serialize for ConstPoint
impl Serialize for ConstPoint
impl Copy for ConstPoint
Auto Trait Implementations§
impl RefUnwindSafe for ConstPoint
impl Send for ConstPoint
impl Sync for ConstPoint
impl Unpin for ConstPoint
impl UnwindSafe for ConstPoint
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