Inline method call

This commit is contained in:
Hanno Braun 2022-06-28 17:40:55 +02:00
parent ab3ee7bf0d
commit a17e400b2b
1 changed files with 1 additions and 6 deletions

View File

@ -211,12 +211,7 @@ impl CyclesInFace {
/// Access an iterator over the canonical forms of the cycles /// Access an iterator over the canonical forms of the cycles
pub fn as_canonical(&self) -> impl Iterator<Item = Cycle<3>> + '_ { pub fn as_canonical(&self) -> impl Iterator<Item = Cycle<3>> + '_ {
self.as_handle().map(|cycle| cycle.get()) self.0.iter().map(|cycle| cycle.canonical().get())
}
/// Access an iterator over handles to the cycles
pub fn as_handle(&self) -> impl Iterator<Item = Handle<Cycle<3>>> + '_ {
self.0.iter().map(|cycle| cycle.canonical())
} }
/// Access an iterator over local forms of the cycles /// Access an iterator over local forms of the cycles