pub struct CornuBody { /* private fields */ }
Expand description
A Cornu body
Implementations§
Source§impl CornuBody
impl CornuBody
Sourcepub fn AppendTrack(e: TrackBodyElement, b: CornuBody) -> Self
pub fn AppendTrack(e: TrackBodyElement, b: CornuBody) -> Self
Add a track body element (track ends) to a Cornu body struct
§Parameters:
- e a TrackBodyElement (track end)
- b the Cornu body struct to update
Returns the updated Cornu body struct
Sourcepub fn AppendCornu(e: CornuBodyElement, b: CornuBody) -> Self
pub fn AppendCornu(e: CornuBodyElement, b: CornuBody) -> Self
Add a CornuBodyElement to a Cornu body struct
§Parameters:
- e a Cornu body element
- b a Cornu body struct to update
Returns the updated body.
pub fn TrackEndsLen(&self) -> usize
pub fn TrackEnd(&self, i: usize) -> &TrackBodyElement
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Index<usize> for CornuBody
impl Index<usize> for CornuBody
Source§type Output = CornuBodyElement
type Output = CornuBodyElement
The returned type after indexing.
impl StructuralPartialEq for CornuBody
Auto Trait Implementations§
impl Freeze for CornuBody
impl RefUnwindSafe for CornuBody
impl Send for CornuBody
impl Sync for CornuBody
impl Unpin for CornuBody
impl UnwindSafe for CornuBody
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