pub struct ClassSchedule { /* private fields */ }
Expand description
Parser for raw class schedule data.
Implementations§
Source§impl ClassSchedule
impl ClassSchedule
Sourcepub fn new(bytes: Vec<u8>, page: u32) -> Result<Self, ParseError>
pub fn new(bytes: Vec<u8>, page: u32) -> Result<Self, ParseError>
Construct a new ClassSchedule
with the specified bytes at the specified page.
Sourcepub fn semester(&self) -> Result<Semester, ParseError>
pub fn semester(&self) -> Result<Semester, ParseError>
Get the semester for the schedule.
Sourcepub fn group_iter(&self) -> impl Iterator<Item = ClassGroup<'_>> + '_
pub fn group_iter(&self) -> impl Iterator<Item = ClassGroup<'_>> + '_
Iterator over groups of classes.
In the catalog, classes are grouped in sets of 3 (usually) which can only be selected together.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClassSchedule
impl RefUnwindSafe for ClassSchedule
impl Send for ClassSchedule
impl Sync for ClassSchedule
impl Unpin for ClassSchedule
impl UnwindSafe for ClassSchedule
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