Struct snarkvm_console_network::Sanitizer
source · [−]pub struct Sanitizer;
Implementations
sourceimpl Sanitizer
impl Sanitizer
sourcepub fn parse(string: &str) -> Result<(&str, &str), Err<VerboseError<&str>>>
pub fn parse(string: &str) -> Result<(&str, &str), Err<VerboseError<&str>>>
Removes all leading whitespaces and comments from the given input, returning the sanitized input.
sourcepub fn parse_whitespaces(
string: &str
) -> Result<(&str, &str), Err<VerboseError<&str>>>
pub fn parse_whitespaces(
string: &str
) -> Result<(&str, &str), Err<VerboseError<&str>>>
Removes leading whitespaces from the given input.
Auto Trait Implementations
impl RefUnwindSafe for Sanitizer
impl Send for Sanitizer
impl Sync for Sanitizer
impl Unpin for Sanitizer
impl UnwindSafe for Sanitizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more