pub struct Context {
pub description: String,
/* private fields */
}
Fields§
§description: String
Implementations§
Source§impl Context
impl Context
pub fn new() -> Self
pub fn with_description(description: &str) -> Self
pub fn is_empty(&self) -> bool
pub fn get_length(&self) -> i32
pub fn push(&mut self, node_item: &str, node_type: &str, node_info: &str)
pub fn pop(&mut self) -> String
pub fn context_to_string(&self) -> String
pub fn print_with_context(&self, message: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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