#[non_exhaustive]pub struct SampledArc {
pub segment: usize,
pub start: usize,
pub samples: usize,
pub bound: f64,
}Expand description
Where one sampled IfcArcIndex segment sits in its ring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.segment: usize0-based index into the curve’s Segments.
start: usizeIndex in SampledRing::vertices of the arc’s authored start point.
samples: usizeSampled vertices after start; the arc ends at vertex
(start + samples + 1) % vertices.len(), an authored point.
bound: f64The backend’s certified bound for this arc plus the distance its end vertices were snapped, in metres.
Trait Implementations§
Source§impl Clone for SampledArc
impl Clone for SampledArc
Source§fn clone(&self) -> SampledArc
fn clone(&self) -> SampledArc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampledArc
Source§impl Debug for SampledArc
impl Debug for SampledArc
Source§impl PartialEq for SampledArc
impl PartialEq for SampledArc
impl StructuralPartialEq for SampledArc
Auto Trait Implementations§
impl Freeze for SampledArc
impl RefUnwindSafe for SampledArc
impl Send for SampledArc
impl Sync for SampledArc
impl Unpin for SampledArc
impl UnsafeUnpin for SampledArc
impl UnwindSafe for SampledArc
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