pub struct ClassGroup<'a> { /* private fields */ }
Expand description
Parser for raw class group data.
Implementations§
Source§impl<'a> ClassGroup<'a>
impl<'a> ClassGroup<'a>
Sourcepub fn class_iter(&self) -> impl Iterator<Item = Class<'a>> + '_
pub fn class_iter(&self) -> impl Iterator<Item = Class<'a>> + '_
Iterator over classes in group.
Sourcepub fn session(&self) -> Result<u32, ParseError>
pub fn session(&self) -> Result<u32, ParseError>
Get the current session of the class group.
For instance, if the session is University 15 Week Session
,
this function will return 15
.
Sourcepub fn start_date(&self) -> Result<NaiveDate, ParseError>
pub fn start_date(&self) -> Result<NaiveDate, ParseError>
Get the start date of the class group.
Sourcepub fn end_date(&self) -> Result<NaiveDate, ParseError>
pub fn end_date(&self) -> Result<NaiveDate, ParseError>
Get the end date of the class group.
Trait Implementations§
Source§impl<'a> Clone for ClassGroup<'a>
impl<'a> Clone for ClassGroup<'a>
Source§fn clone(&self) -> ClassGroup<'a>
fn clone(&self) -> ClassGroup<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for ClassGroup<'a>
impl<'a> RefUnwindSafe for ClassGroup<'a>
impl<'a> !Send for ClassGroup<'a>
impl<'a> !Sync for ClassGroup<'a>
impl<'a> Unpin for ClassGroup<'a>
impl<'a> UnwindSafe for ClassGroup<'a>
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