pub struct ContributionGraph { /* private fields */ }Implementations§
Source§impl ContributionGraph
impl ContributionGraph
pub fn from_json(data: &Value) -> Self
pub fn from_grid(grid: Vec<Vec<u8>>) -> Self
pub fn render( &self, width: Option<usize>, height: Option<usize>, custom_box: &str, colors: &ColorConfig, show_date: bool, spaced: bool, ) -> Vec<String>
pub fn calculate_total_contributions(&self) -> u32
pub fn calculate_streaks(&self) -> (u32, u32)
Auto Trait Implementations§
impl Freeze for ContributionGraph
impl RefUnwindSafe for ContributionGraph
impl Send for ContributionGraph
impl Sync for ContributionGraph
impl Unpin for ContributionGraph
impl UnwindSafe for ContributionGraph
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