Skip to main content

quo

Macro quo 

Source
macro_rules! quo {
    ($( mut $var:ident ), + $(,)?) => { ... };
    ($( $var:ident ), + $(,)?) => { ... };
    ($( $var:expr ), + $(,)?) => { ... };
}
Expand description

This macro sends the provided variable(s) or expression(s) to Quo using the __private_quo function. It is only active when debug_assertions are enabled (typically in debug builds).

§Examples

§Sending a single variable

use quo::quo;

let variable = 12;
quo!(variable);

§Sending a mutable variable

To report mutability for a variable binding, use the mut keyword:

use quo::quo;

let mut big_number = 170141183460469231731687303715884105727i128;
quo!(mut big_number);

Alternatively, passing a mutable reference also works automatically:

use quo::quo;

let mut big_number = 170141183460469231731687303715884105727i128;
quo!(&mut big_number);

§Sending an expression

use quo::quo;

quo!(1 + 1);

§Sending multiple arguments

use quo::quo;

let variable = 43;
quo!(variable, "string", 1 + 1);