pub struct TangentChain {
pub links: Vec<Link>,
pub closed: bool,
}Expand description
The edges blended as one: a tangent chain (see the module docs), in the
order it runs, around to the first again if closed.
Fields§
§links: Vec<Link>§closed: boolImplementations§
Source§impl TangentChain
impl TangentChain
Sourcepub fn vertices(&self, model: &Model) -> GeopResult<Vec<VertexId>>
pub fn vertices(&self, model: &Model) -> GeopResult<Vec<VertexId>>
The chain’s vertices in order: where each link starts, and — for an open chain — where the last one ends.
Sourcepub fn first(&self) -> GeopResult<&Link>
pub fn first(&self) -> GeopResult<&Link>
Its first link.
Sourcepub fn last(&self) -> GeopResult<&Link>
pub fn last(&self) -> GeopResult<&Link>
Its last link.
pub fn edges(&self) -> Vec<EdgeId>
Trait Implementations§
Source§impl Clone for TangentChain
impl Clone for TangentChain
Source§fn clone(&self) -> TangentChain
fn clone(&self) -> TangentChain
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 moreAuto Trait Implementations§
impl Freeze for TangentChain
impl RefUnwindSafe for TangentChain
impl Send for TangentChain
impl Sync for TangentChain
impl Unpin for TangentChain
impl UnsafeUnpin for TangentChain
impl UnwindSafe for TangentChain
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