pub struct RWTFile {
pub track_points: Section,
pub course_points: Section,
/* private fields */
}Fields§
§track_points: Section§course_points: SectionImplementations§
Source§impl RWTFile
impl RWTFile
pub fn new() -> Self
pub fn with_track_type(track_type: TrackType) -> Self
pub fn header(&self) -> &RWTFHeader
pub fn add_track_point<V: Into<DataField>>( &mut self, index: usize, k: &str, v: V, ) -> Result<(), Error>
pub fn add_course_point<V: Into<DataField>>( &mut self, index: usize, k: &str, v: V, ) -> Result<(), Error>
pub fn metadata(&self) -> &RWTFMetadata
pub fn write<W: Write>(&self, out: &mut W) -> Result<usize, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RWTFile
impl RefUnwindSafe for RWTFile
impl Send for RWTFile
impl Sync for RWTFile
impl Unpin for RWTFile
impl UnwindSafe for RWTFile
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more