pub fn print(s: &str)
Prints a string to standard output.
This string will not have an implicit newline at the end. If you want
an implicit newline, please see println
.
// print is imported into the prelude, and so is always available.
print("hello");
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).