pub struct TimelineItem<'a> {
pub time: &'a str,
pub title: &'a str,
pub body_html: TrustedHtml<'a>,
pub active: bool,
}Fields§
§time: &'a str§title: &'a str§body_html: TrustedHtml<'a>§active: boolImplementations§
Source§impl<'a> TimelineItem<'a>
impl<'a> TimelineItem<'a>
pub const fn new( time: &'a str, title: &'a str, body_html: TrustedHtml<'a>, ) -> Self
pub const fn active(self) -> Self
pub fn class_name(&self) -> &'static str
Trait Implementations§
Source§impl<'a> Clone for TimelineItem<'a>
impl<'a> Clone for TimelineItem<'a>
Source§fn clone(&self) -> TimelineItem<'a>
fn clone(&self) -> TimelineItem<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TimelineItem<'a>
impl<'a> Debug for TimelineItem<'a>
Source§impl<'a> PartialEq for TimelineItem<'a>
impl<'a> PartialEq for TimelineItem<'a>
Source§fn eq(&self, other: &TimelineItem<'a>) -> bool
fn eq(&self, other: &TimelineItem<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for TimelineItem<'a>
impl<'a> Eq for TimelineItem<'a>
impl<'a> StructuralPartialEq for TimelineItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for TimelineItem<'a>
impl<'a> RefUnwindSafe for TimelineItem<'a>
impl<'a> Send for TimelineItem<'a>
impl<'a> Sync for TimelineItem<'a>
impl<'a> Unpin for TimelineItem<'a>
impl<'a> UnsafeUnpin for TimelineItem<'a>
impl<'a> UnwindSafe for TimelineItem<'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