pub enum Trimester {
First,
Second,
Third,
}Expand description
A trimester of pregnancy — the staged ~40-week timeline (§1.3).
Variants§
Implementations§
Source§impl Trimester
impl Trimester
Sourcepub fn next(self) -> Option<Trimester>
pub fn next(self) -> Option<Trimester>
The next trimester, or None after the third (birth follows, not a fourth trimester of pregnancy
— the “fourth trimester” is ReproductiveState::Postpartum, a distinct state of the mother’s body).
Sourcepub fn week_span(self) -> (u32, u32)
pub fn week_span(self) -> (u32, u32)
The conventional gestational-week span (inclusive start, inclusive end) of this trimester. Coarse clinical convention, not a per-person claim.
Sourcepub fn plain_label(self) -> &'static str
pub fn plain_label(self) -> &'static str
Plain-language label.
Trait Implementations§
impl Copy for Trimester
Source§impl<'de> Deserialize<'de> for Trimester
impl<'de> Deserialize<'de> for Trimester
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Trimester
impl StructuralPartialEq for Trimester
Auto Trait Implementations§
impl Freeze for Trimester
impl RefUnwindSafe for Trimester
impl Send for Trimester
impl Sync for Trimester
impl Unpin for Trimester
impl UnsafeUnpin for Trimester
impl UnwindSafe for Trimester
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