Struct knitting_parse::Options
source · [−]Expand description
The options for a pattern.
Fields
first_line_number: usize
What the first line should be labeled.
starting_side: Side
What side to start with.
in_round: bool
If the pattern is in the round.
Implementations
sourceimpl Options
impl Options
sourcepub fn parse_options(
&mut self,
line: &str,
line_number: usize
) -> Result<(), ParseError>
pub fn parse_options(
&mut self,
line: &str,
line_number: usize
) -> Result<(), ParseError>
Parse the options from the given line.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more