pub struct USBNotecard { /* private fields */ }Expand description
An Universal Sailor Buddy (USB) notecard
Implementations§
Source§impl USBNotecard
impl USBNotecard
Sourcepub const fn new(waypoints: Vec<USBWaypoint>) -> Self
pub const fn new(waypoints: Vec<USBWaypoint>) -> Self
Create a new USB notecard
Sourcepub fn waypoints(&self) -> &[USBWaypoint]
pub fn waypoints(&self) -> &[USBWaypoint]
get the waypoints in the notecard
Sourcepub fn load_from_file(filename: &Path) -> Result<Self, USBNotecardLoadError>
pub fn load_from_file(filename: &Path) -> Result<Self, USBNotecardLoadError>
load an USB Notecard from a text file
§Errors
this returns an error if either reading the file or parsing the content
as a USBNotecard fail
Trait Implementations§
Source§impl Clone for USBNotecard
impl Clone for USBNotecard
Source§fn clone(&self) -> USBNotecard
fn clone(&self) -> USBNotecard
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for USBNotecard
impl Debug for USBNotecard
Source§impl Display for USBNotecard
impl Display for USBNotecard
Auto Trait Implementations§
impl Freeze for USBNotecard
impl RefUnwindSafe for USBNotecard
impl Send for USBNotecard
impl Sync for USBNotecard
impl Unpin for USBNotecard
impl UnwindSafe for USBNotecard
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