@@ -43,33 +43,33 @@ pub fn evcxr_figure<
43
43
SVGWrapper ( buffer, "" . to_string ( ) )
44
44
}
45
45
46
- #[ cfg( all( feature = "evcxr" , feature = "bitmap_backend" ) ) ]
47
- pub struct BitMapWrapper ( String , String ) ;
46
+ // #[cfg(all(feature = "evcxr", feature = "bitmap_backend"))]
47
+ // pub struct BitMapWrapper(String, String);
48
48
49
- #[ cfg( all( feature = "evcxr" , feature = "bitmap_backend" ) ) ]
50
- impl BitMapWrapper {
51
- pub fn evcxr_display ( & self ) {
52
- println ! ( "{:?}" , self ) ;
53
- }
49
+ // #[cfg(all(feature = "evcxr", feature = "bitmap_backend"))]
50
+ // impl BitMapWrapper {
51
+ // pub fn evcxr_display(&self) {
52
+ // println!("{:?}", self);
53
+ // }
54
54
55
- pub fn style < S : Into < String > > ( mut self , style : S ) -> Self {
56
- self . 1 = style. into ( ) ;
57
- self
58
- }
59
- }
55
+ // pub fn style<S: Into<String>>(mut self, style: S) -> Self {
56
+ // self.1 = style.into();
57
+ // self
58
+ // }
59
+ // }
60
60
61
61
// #[cfg(feature = "evcxr_bitmap_figure")]
62
- #[ cfg( all( feature = "evcxr" , feature = "bitmap_backend" ) ) ]
63
- impl std:: fmt:: Debug for BitMapWrapper {
64
- fn fmt ( & self , formatter : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
65
- let enc = self . 0 . as_str ( ) ;
66
- write ! (
67
- formatter,
68
- "EVCXR_BEGIN_CONTENT text/html\n <img style=\" {}\" src=\" data:image/png;base64,{}\" />\n EVCXR_END_CONTENT" ,
69
- self . 1 , enc
70
- )
71
- }
72
- }
62
+ // #[cfg(all(feature = "evcxr", feature = "bitmap_backend"))]
63
+ // impl std::fmt::Debug for BitMapWrapper {
64
+ // fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
65
+ // let enc = self.0.as_str();
66
+ // write!(
67
+ // formatter,
68
+ // "EVCXR_BEGIN_CONTENT text/html\n<img style=\"{}\" src=\"data:image/png;base64,{}\"/>\nEVCXR_END_CONTENT",
69
+ // self.1, enc
70
+ // )
71
+ // }
72
+ // }
73
73
74
74
75
75
/// Start drawing an evcxr figure
0 commit comments