Struct ubs_lib::parser::ClassGroup
source · 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> 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