pub struct CryptoGraph {
pub title: String,
pub data: Vec<(f64, f64)>,
pub labels: HashMap<String, String>,
pub style: GraphStyle,
}Expand description
Graphing module for cryptographic visualization
Fields§
§title: String§data: Vec<(f64, f64)>§labels: HashMap<String, String>§style: GraphStyleImplementations§
Source§impl CryptoGraph
impl CryptoGraph
Sourcepub fn render_ascii(
&self,
width: usize,
height: usize,
) -> Result<String, LaiCryptoError>
pub fn render_ascii( &self, width: usize, height: usize, ) -> Result<String, LaiCryptoError>
Renders graph to ASCII art
Trait Implementations§
Source§impl Clone for CryptoGraph
impl Clone for CryptoGraph
Source§fn clone(&self) -> CryptoGraph
fn clone(&self) -> CryptoGraph
Returns a duplicate 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 Freeze for CryptoGraph
impl RefUnwindSafe for CryptoGraph
impl Send for CryptoGraph
impl Sync for CryptoGraph
impl Unpin for CryptoGraph
impl UnwindSafe for CryptoGraph
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