pub struct TracableInfo {}
Expand description
Struct to have trace configuration.
Implementations§
Source§impl TracableInfo
impl TracableInfo
Sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
More examples
examples/u8_parser.rs (line 49)
47fn main() {
48 // Configure trace setting
49 let info = TracableInfo::new()
50 .parser_width(64)
51 .fragment_width(20)
52 .fold("term");
53 let _ret = expr(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info));
54
55 // Show histogram
56 histogram();
57 cumulative_histogram();
58}
examples/u8_custom_parser.rs (line 120)
118fn main() {
119 // Configure trace setting
120 let info = TracableInfo::new()
121 .parser_width(64)
122 .fragment_width(20)
123 .fold("term");
124 let _ret = expr(Span(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info)));
125
126 // Show histogram
127 histogram();
128 cumulative_histogram();
129}
pub fn forward(self, _x: bool) -> Self
pub fn backward(self, _x: bool) -> Self
pub fn custom(self, _x: bool) -> Self
pub fn color(self, _x: bool) -> Self
pub fn count_width(self, _x: usize) -> Self
Sourcepub fn parser_width(self, _x: usize) -> Self
pub fn parser_width(self, _x: usize) -> Self
Examples found in repository?
More examples
examples/u8_parser.rs (line 50)
47fn main() {
48 // Configure trace setting
49 let info = TracableInfo::new()
50 .parser_width(64)
51 .fragment_width(20)
52 .fold("term");
53 let _ret = expr(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info));
54
55 // Show histogram
56 histogram();
57 cumulative_histogram();
58}
examples/u8_custom_parser.rs (line 121)
118fn main() {
119 // Configure trace setting
120 let info = TracableInfo::new()
121 .parser_width(64)
122 .fragment_width(20)
123 .fold("term");
124 let _ret = expr(Span(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info)));
125
126 // Show histogram
127 histogram();
128 cumulative_histogram();
129}
Sourcepub fn fragment_width(self, _x: usize) -> Self
pub fn fragment_width(self, _x: usize) -> Self
Examples found in repository?
examples/u8_parser.rs (line 51)
47fn main() {
48 // Configure trace setting
49 let info = TracableInfo::new()
50 .parser_width(64)
51 .fragment_width(20)
52 .fold("term");
53 let _ret = expr(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info));
54
55 // Show histogram
56 histogram();
57 cumulative_histogram();
58}
More examples
examples/u8_custom_parser.rs (line 122)
118fn main() {
119 // Configure trace setting
120 let info = TracableInfo::new()
121 .parser_width(64)
122 .fragment_width(20)
123 .fold("term");
124 let _ret = expr(Span(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info)));
125
126 // Show histogram
127 histogram();
128 cumulative_histogram();
129}
Sourcepub fn fold(self, _x: &str) -> Self
pub fn fold(self, _x: &str) -> Self
Examples found in repository?
More examples
examples/u8_parser.rs (line 52)
47fn main() {
48 // Configure trace setting
49 let info = TracableInfo::new()
50 .parser_width(64)
51 .fragment_width(20)
52 .fold("term");
53 let _ret = expr(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info));
54
55 // Show histogram
56 histogram();
57 cumulative_histogram();
58}
examples/u8_custom_parser.rs (line 123)
118fn main() {
119 // Configure trace setting
120 let info = TracableInfo::new()
121 .parser_width(64)
122 .fragment_width(20)
123 .fold("term");
124 let _ret = expr(Span(LocatedSpan::new_extra("1-1+1+1-1".as_bytes(), info)));
125
126 // Show histogram
127 histogram();
128 cumulative_histogram();
129}
Trait Implementations§
Source§impl Clone for TracableInfo
impl Clone for TracableInfo
Source§fn clone(&self) -> TracableInfo
fn clone(&self) -> TracableInfo
Returns a copy 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 moreSource§impl Debug for TracableInfo
impl Debug for TracableInfo
Source§impl Default for TracableInfo
impl Default for TracableInfo
Source§impl HasTracableInfo for TracableInfo
impl HasTracableInfo for TracableInfo
fn get_tracable_info(&self) -> TracableInfo
fn set_tracable_info(self, info: TracableInfo) -> Self
Source§impl PartialEq for TracableInfo
impl PartialEq for TracableInfo
impl Copy for TracableInfo
impl StructuralPartialEq for TracableInfo
Auto Trait Implementations§
impl Freeze for TracableInfo
impl RefUnwindSafe for TracableInfo
impl Send for TracableInfo
impl Sync for TracableInfo
impl Unpin for TracableInfo
impl UnwindSafe for TracableInfo
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