Struct syntax::print::pprust::State [−][src]
pub struct State<'a> { pub s: Printer<'a>, cm: Option<&'a CodeMap>, comments: Option<Vec<Comment>>, literals: Peekable<IntoIter<Literal>>, cur_cmnt: usize, boxes: Vec<Breaks>, ann: &'a (PpAnn + 'a), }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
s: Printer<'a>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
cm: Option<&'a CodeMap>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
comments: Option<Vec<Comment>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
literals: Peekable<IntoIter<Literal>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
cur_cmnt: usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
boxes: Vec<Breaks>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ann: &'a (PpAnn + 'a)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<'a> State<'a>
[src]
impl<'a> State<'a>
pub fn new_from_input(
cm: &'a CodeMap,
sess: &ParseSess,
filename: FileName,
input: &mut Read,
out: Box<Write + 'a>,
ann: &'a PpAnn,
is_expanded: bool
) -> State<'a>
[src]
pub fn new_from_input(
cm: &'a CodeMap,
sess: &ParseSess,
filename: FileName,
input: &mut Read,
out: Box<Write + 'a>,
ann: &'a PpAnn,
is_expanded: bool
) -> State<'a>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn new(
cm: &'a CodeMap,
out: Box<Write + 'a>,
ann: &'a PpAnn,
comments: Option<Vec<Comment>>,
literals: Option<Vec<Literal>>
) -> State<'a>
[src]
pub fn new(
cm: &'a CodeMap,
out: Box<Write + 'a>,
ann: &'a PpAnn,
comments: Option<Vec<Comment>>,
literals: Option<Vec<Literal>>
) -> State<'a>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<'a> State<'a>
[src]
impl<'a> State<'a>
pub fn cbox(&mut self, u: usize) -> Result<()>
[src]
pub fn cbox(&mut self, u: usize) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn word_nbsp(&mut self, w: &str) -> Result<()>
[src]
pub fn word_nbsp(&mut self, w: &str) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn head(&mut self, w: &str) -> Result<()>
[src]
pub fn head(&mut self, w: &str) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn bopen(&mut self) -> Result<()>
[src]
pub fn bopen(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn bclose_(&mut self, span: Span, indented: usize) -> Result<()>
[src]
pub fn bclose_(&mut self, span: Span, indented: usize) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn bclose_maybe_open(
&mut self,
span: Span,
indented: usize,
close_box: bool
) -> Result<()>
[src]
pub fn bclose_maybe_open(
&mut self,
span: Span,
indented: usize,
close_box: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn bclose(&mut self, span: Span) -> Result<()>
[src]
pub fn bclose(&mut self, span: Span) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn in_cbox(&self) -> bool
[src]
pub fn in_cbox(&self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn break_offset_if_not_bol(&mut self, n: usize, off: isize) -> Result<()>
[src]
pub fn break_offset_if_not_bol(&mut self, n: usize, off: isize) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn synth_comment(&mut self, text: String) -> Result<()>
[src]
pub fn synth_comment(&mut self, text: String) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn commasep_cmnt<T, F, G>(
&mut self,
b: Breaks,
elts: &[T],
op: F,
get_span: G
) -> Result<()> where
F: FnMut(&mut State, &T) -> Result<()>,
G: FnMut(&T) -> Span,
[src]
pub fn commasep_cmnt<T, F, G>(
&mut self,
b: Breaks,
elts: &[T],
op: F,
get_span: G
) -> Result<()> where
F: FnMut(&mut State, &T) -> Result<()>,
G: FnMut(&T) -> Span,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn commasep_exprs(&mut self, b: Breaks, exprs: &[P<Expr>]) -> Result<()>
[src]
pub fn commasep_exprs(&mut self, b: Breaks, exprs: &[P<Expr>]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_mod(&mut self, _mod: &Mod, attrs: &[Attribute]) -> Result<()>
[src]
pub fn print_mod(&mut self, _mod: &Mod, attrs: &[Attribute]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_foreign_mod(
&mut self,
nmod: &ForeignMod,
attrs: &[Attribute]
) -> Result<()>
[src]
pub fn print_foreign_mod(
&mut self,
nmod: &ForeignMod,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_opt_lifetime(&mut self, lifetime: &Option<Lifetime>) -> Result<()>
[src]
pub fn print_opt_lifetime(&mut self, lifetime: &Option<Lifetime>) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_type(&mut self, ty: &Ty) -> Result<()>
[src]
pub fn print_type(&mut self, ty: &Ty) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_foreign_item(&mut self, item: &ForeignItem) -> Result<()>
[src]
pub fn print_foreign_item(&mut self, item: &ForeignItem) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_associated_const(
&mut self,
ident: Ident,
ty: &Ty,
default: Option<&Expr>,
vis: &Visibility
) -> Result<()>
[src]
fn print_associated_const(
&mut self,
ident: Ident,
ty: &Ty,
default: Option<&Expr>,
vis: &Visibility
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_associated_type(
&mut self,
ident: Ident,
bounds: Option<&TyParamBounds>,
ty: Option<&Ty>
) -> Result<()>
[src]
fn print_associated_type(
&mut self,
ident: Ident,
bounds: Option<&TyParamBounds>,
ty: Option<&Ty>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_item(&mut self, item: &Item) -> Result<()>
[src]
pub fn print_item(&mut self, item: &Item) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Pretty-print an item
fn print_trait_ref(&mut self, t: &TraitRef) -> Result<()>
[src]
fn print_trait_ref(&mut self, t: &TraitRef) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_formal_generic_params(
&mut self,
generic_params: &[GenericParam]
) -> Result<()>
[src]
fn print_formal_generic_params(
&mut self,
generic_params: &[GenericParam]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_poly_trait_ref(&mut self, t: &PolyTraitRef) -> Result<()>
[src]
fn print_poly_trait_ref(&mut self, t: &PolyTraitRef) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_enum_def(
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
ident: Ident,
span: Span,
visibility: &Visibility
) -> Result<()>
[src]
pub fn print_enum_def(
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
ident: Ident,
span: Span,
visibility: &Visibility
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_variants(&mut self, variants: &[Variant], span: Span) -> Result<()>
[src]
pub fn print_variants(&mut self, variants: &[Variant], span: Span) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_visibility(&mut self, vis: &Visibility) -> Result<()>
[src]
pub fn print_visibility(&mut self, vis: &Visibility) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_defaultness(&mut self, defatulness: Defaultness) -> Result<()>
[src]
pub fn print_defaultness(&mut self, defatulness: Defaultness) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_struct(
&mut self,
struct_def: &VariantData,
generics: &Generics,
ident: Ident,
span: Span,
print_finalizer: bool
) -> Result<()>
[src]
pub fn print_struct(
&mut self,
struct_def: &VariantData,
generics: &Generics,
ident: Ident,
span: Span,
print_finalizer: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_variant(&mut self, v: &Variant) -> Result<()>
[src]
pub fn print_variant(&mut self, v: &Variant) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_method_sig(
&mut self,
ident: Ident,
generics: &Generics,
m: &MethodSig,
vis: &Visibility
) -> Result<()>
[src]
pub fn print_method_sig(
&mut self,
ident: Ident,
generics: &Generics,
m: &MethodSig,
vis: &Visibility
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_trait_item(&mut self, ti: &TraitItem) -> Result<()>
[src]
pub fn print_trait_item(&mut self, ti: &TraitItem) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_impl_item(&mut self, ii: &ImplItem) -> Result<()>
[src]
pub fn print_impl_item(&mut self, ii: &ImplItem) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_stmt(&mut self, st: &Stmt) -> Result<()>
[src]
pub fn print_stmt(&mut self, st: &Stmt) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block(&mut self, blk: &Block) -> Result<()>
[src]
pub fn print_block(&mut self, blk: &Block) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block_unclosed(&mut self, blk: &Block) -> Result<()>
[src]
pub fn print_block_unclosed(&mut self, blk: &Block) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block_unclosed_with_attrs(
&mut self,
blk: &Block,
attrs: &[Attribute]
) -> Result<()>
[src]
pub fn print_block_unclosed_with_attrs(
&mut self,
blk: &Block,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block_unclosed_indent(
&mut self,
blk: &Block,
indented: usize
) -> Result<()>
[src]
pub fn print_block_unclosed_indent(
&mut self,
blk: &Block,
indented: usize
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block_with_attrs(
&mut self,
blk: &Block,
attrs: &[Attribute]
) -> Result<()>
[src]
pub fn print_block_with_attrs(
&mut self,
blk: &Block,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_block_maybe_unclosed(
&mut self,
blk: &Block,
indented: usize,
attrs: &[Attribute],
close_box: bool
) -> Result<()>
[src]
pub fn print_block_maybe_unclosed(
&mut self,
blk: &Block,
indented: usize,
attrs: &[Attribute],
close_box: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_else(&mut self, els: Option<&Expr>) -> Result<()>
[src]
fn print_else(&mut self, els: Option<&Expr>) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_if(
&mut self,
test: &Expr,
blk: &Block,
elseopt: Option<&Expr>
) -> Result<()>
[src]
pub fn print_if(
&mut self,
test: &Expr,
blk: &Block,
elseopt: Option<&Expr>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_if_let(
&mut self,
pats: &[P<Pat>],
expr: &Expr,
blk: &Block,
elseopt: Option<&Expr>
) -> Result<()>
[src]
pub fn print_if_let(
&mut self,
pats: &[P<Pat>],
expr: &Expr,
blk: &Block,
elseopt: Option<&Expr>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_mac(&mut self, m: &Mac, delim: DelimToken) -> Result<()>
[src]
pub fn print_mac(&mut self, m: &Mac, delim: DelimToken) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_call_post(&mut self, args: &[P<Expr>]) -> Result<()>
[src]
fn print_call_post(&mut self, args: &[P<Expr>]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_expr_maybe_paren(&mut self, expr: &Expr, prec: i8) -> Result<()>
[src]
pub fn print_expr_maybe_paren(&mut self, expr: &Expr, prec: i8) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_expr_as_cond(&mut self, expr: &Expr) -> Result<()>
[src]
pub fn print_expr_as_cond(&mut self, expr: &Expr) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Print an expr using syntax that's acceptable in a condition position, such as the cond
in
if cond { ... }
.
fn print_expr_vec(
&mut self,
exprs: &[P<Expr>],
attrs: &[Attribute]
) -> Result<()>
[src]
fn print_expr_vec(
&mut self,
exprs: &[P<Expr>],
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_repeat(
&mut self,
element: &Expr,
count: &Expr,
attrs: &[Attribute]
) -> Result<()>
[src]
fn print_expr_repeat(
&mut self,
element: &Expr,
count: &Expr,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_struct(
&mut self,
path: &Path,
fields: &[Field],
wth: &Option<P<Expr>>,
attrs: &[Attribute]
) -> Result<()>
[src]
fn print_expr_struct(
&mut self,
path: &Path,
fields: &[Field],
wth: &Option<P<Expr>>,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_tup(
&mut self,
exprs: &[P<Expr>],
attrs: &[Attribute]
) -> Result<()>
[src]
fn print_expr_tup(
&mut self,
exprs: &[P<Expr>],
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_call(&mut self, func: &Expr, args: &[P<Expr>]) -> Result<()>
[src]
fn print_expr_call(&mut self, func: &Expr, args: &[P<Expr>]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_method_call(
&mut self,
segment: &PathSegment,
args: &[P<Expr>]
) -> Result<()>
[src]
fn print_expr_method_call(
&mut self,
segment: &PathSegment,
args: &[P<Expr>]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_binary(&mut self, op: BinOp, lhs: &Expr, rhs: &Expr) -> Result<()>
[src]
fn print_expr_binary(&mut self, op: BinOp, lhs: &Expr, rhs: &Expr) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_unary(&mut self, op: UnOp, expr: &Expr) -> Result<()>
[src]
fn print_expr_unary(&mut self, op: UnOp, expr: &Expr) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_addr_of(
&mut self,
mutability: Mutability,
expr: &Expr
) -> Result<()>
[src]
fn print_expr_addr_of(
&mut self,
mutability: Mutability,
expr: &Expr
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_expr(&mut self, expr: &Expr) -> Result<()>
[src]
pub fn print_expr(&mut self, expr: &Expr) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_expr_outer_attr_style(
&mut self,
expr: &Expr,
is_inline: bool
) -> Result<()>
[src]
fn print_expr_outer_attr_style(
&mut self,
expr: &Expr,
is_inline: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_local_decl(&mut self, loc: &Local) -> Result<()>
[src]
pub fn print_local_decl(&mut self, loc: &Local) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_ident(&mut self, ident: Ident) -> Result<()>
[src]
pub fn print_ident(&mut self, ident: Ident) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_usize(&mut self, i: usize) -> Result<()>
[src]
pub fn print_usize(&mut self, i: usize) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_name(&mut self, name: Name) -> Result<()>
[src]
pub fn print_name(&mut self, name: Name) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_for_decl(&mut self, loc: &Local, coll: &Expr) -> Result<()>
[src]
pub fn print_for_decl(&mut self, loc: &Local, coll: &Expr) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_path(
&mut self,
path: &Path,
colons_before_params: bool,
depth: usize
) -> Result<()>
[src]
fn print_path(
&mut self,
path: &Path,
colons_before_params: bool,
depth: usize
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_path_segment(
&mut self,
segment: &PathSegment,
colons_before_params: bool
) -> Result<()>
[src]
fn print_path_segment(
&mut self,
segment: &PathSegment,
colons_before_params: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_qpath(
&mut self,
path: &Path,
qself: &QSelf,
colons_before_params: bool
) -> Result<()>
[src]
fn print_qpath(
&mut self,
path: &Path,
qself: &QSelf,
colons_before_params: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_path_parameters(
&mut self,
parameters: &PathParameters,
colons_before_params: bool
) -> Result<()>
[src]
fn print_path_parameters(
&mut self,
parameters: &PathParameters,
colons_before_params: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_pat(&mut self, pat: &Pat) -> Result<()>
[src]
pub fn print_pat(&mut self, pat: &Pat) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_pats(&mut self, pats: &[P<Pat>]) -> Result<()>
[src]
fn print_pats(&mut self, pats: &[P<Pat>]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_arm(&mut self, arm: &Arm) -> Result<()>
[src]
fn print_arm(&mut self, arm: &Arm) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_explicit_self(&mut self, explicit_self: &ExplicitSelf) -> Result<()>
[src]
fn print_explicit_self(&mut self, explicit_self: &ExplicitSelf) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_fn(
&mut self,
decl: &FnDecl,
unsafety: Unsafety,
constness: Constness,
abi: Abi,
name: Option<Ident>,
generics: &Generics,
vis: &Visibility
) -> Result<()>
[src]
pub fn print_fn(
&mut self,
decl: &FnDecl,
unsafety: Unsafety,
constness: Constness,
abi: Abi,
name: Option<Ident>,
generics: &Generics,
vis: &Visibility
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_fn_args_and_ret(&mut self, decl: &FnDecl) -> Result<()>
[src]
pub fn print_fn_args_and_ret(&mut self, decl: &FnDecl) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_fn_block_args(&mut self, decl: &FnDecl) -> Result<()>
[src]
pub fn print_fn_block_args(&mut self, decl: &FnDecl) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_movability(&mut self, movability: Movability) -> Result<()>
[src]
pub fn print_movability(&mut self, movability: Movability) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_capture_clause(&mut self, capture_clause: CaptureBy) -> Result<()>
[src]
pub fn print_capture_clause(&mut self, capture_clause: CaptureBy) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_bounds(
&mut self,
prefix: &str,
bounds: &[TyParamBound]
) -> Result<()>
[src]
pub fn print_bounds(
&mut self,
prefix: &str,
bounds: &[TyParamBound]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_lifetime(&mut self, lifetime: &Lifetime) -> Result<()>
[src]
pub fn print_lifetime(&mut self, lifetime: &Lifetime) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_lifetime_bounds(
&mut self,
lifetime: &Lifetime,
bounds: &[Lifetime]
) -> Result<()>
[src]
pub fn print_lifetime_bounds(
&mut self,
lifetime: &Lifetime,
bounds: &[Lifetime]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_generic_params(
&mut self,
generic_params: &[GenericParam]
) -> Result<()>
[src]
pub fn print_generic_params(
&mut self,
generic_params: &[GenericParam]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_ty_param(&mut self, param: &TyParam) -> Result<()>
[src]
pub fn print_ty_param(&mut self, param: &TyParam) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_where_clause(&mut self, where_clause: &WhereClause) -> Result<()>
[src]
pub fn print_where_clause(&mut self, where_clause: &WhereClause) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_use_tree(&mut self, tree: &UseTree) -> Result<()>
[src]
pub fn print_use_tree(&mut self, tree: &UseTree) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_mutability(&mut self, mutbl: Mutability) -> Result<()>
[src]
pub fn print_mutability(&mut self, mutbl: Mutability) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_mt(&mut self, mt: &MutTy) -> Result<()>
[src]
pub fn print_mt(&mut self, mt: &MutTy) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_arg(&mut self, input: &Arg, is_closure: bool) -> Result<()>
[src]
pub fn print_arg(&mut self, input: &Arg, is_closure: bool) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_fn_output(&mut self, decl: &FnDecl) -> Result<()>
[src]
pub fn print_fn_output(&mut self, decl: &FnDecl) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_ty_fn(
&mut self,
abi: Abi,
unsafety: Unsafety,
decl: &FnDecl,
name: Option<Ident>,
generic_params: &Vec<GenericParam>
) -> Result<()>
[src]
pub fn print_ty_fn(
&mut self,
abi: Abi,
unsafety: Unsafety,
decl: &FnDecl,
name: Option<Ident>,
generic_params: &Vec<GenericParam>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn maybe_print_trailing_comment(
&mut self,
span: Span,
next_pos: Option<BytePos>
) -> Result<()>
[src]
pub fn maybe_print_trailing_comment(
&mut self,
span: Span,
next_pos: Option<BytePos>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_remaining_comments(&mut self) -> Result<()>
[src]
pub fn print_remaining_comments(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_opt_abi_and_extern_if_nondefault(
&mut self,
opt_abi: Option<Abi>
) -> Result<()>
[src]
pub fn print_opt_abi_and_extern_if_nondefault(
&mut self,
opt_abi: Option<Abi>
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_extern_opt_abi(&mut self, opt_abi: Option<Abi>) -> Result<()>
[src]
pub fn print_extern_opt_abi(&mut self, opt_abi: Option<Abi>) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_fn_header_info(
&mut self,
unsafety: Unsafety,
constness: Constness,
abi: Abi,
vis: &Visibility
) -> Result<()>
[src]
pub fn print_fn_header_info(
&mut self,
unsafety: Unsafety,
constness: Constness,
abi: Abi,
vis: &Visibility
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_unsafety(&mut self, s: Unsafety) -> Result<()>
[src]
pub fn print_unsafety(&mut self, s: Unsafety) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn print_is_auto(&mut self, s: IsAuto) -> Result<()>
[src]
pub fn print_is_auto(&mut self, s: IsAuto) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<'a> PrintState<'a> for State<'a>
[src]
impl<'a> PrintState<'a> for State<'a>
fn writer(&mut self) -> &mut Printer<'a>
[src]
fn writer(&mut self) -> &mut Printer<'a>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn boxes(&mut self) -> &mut Vec<Breaks>
[src]
fn boxes(&mut self) -> &mut Vec<Breaks>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn comments(&mut self) -> &mut Option<Vec<Comment>>
[src]
fn comments(&mut self) -> &mut Option<Vec<Comment>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn cur_cmnt(&mut self) -> &mut usize
[src]
fn cur_cmnt(&mut self) -> &mut usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn cur_lit(&mut self) -> Option<&Literal>
[src]
fn cur_lit(&mut self) -> Option<&Literal>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn bump_lit(&mut self) -> Option<Literal>
[src]
fn bump_lit(&mut self) -> Option<Literal>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn word_space(&mut self, w: &str) -> Result<()>
[src]
fn word_space(&mut self, w: &str) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn popen(&mut self) -> Result<()>
[src]
fn popen(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn pclose(&mut self) -> Result<()>
[src]
fn pclose(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn is_begin(&mut self) -> bool
[src]
fn is_begin(&mut self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn is_end(&mut self) -> bool
[src]
fn is_end(&mut self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn is_bol(&mut self) -> bool
[src]
fn is_bol(&mut self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn hardbreak_if_not_bol(&mut self) -> Result<()>
[src]
fn hardbreak_if_not_bol(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn rbox(&mut self, u: usize, b: Breaks) -> Result<()>
[src]
fn rbox(&mut self, u: usize, b: Breaks) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn ibox(&mut self, u: usize) -> Result<()>
[src]
fn ibox(&mut self, u: usize) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn end(&mut self) -> Result<()>
[src]
fn end(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn commasep<T, F>(&mut self, b: Breaks, elts: &[T], op: F) -> Result<()> where
F: FnMut(&mut Self, &T) -> Result<()>,
[src]
fn commasep<T, F>(&mut self, b: Breaks, elts: &[T], op: F) -> Result<()> where
F: FnMut(&mut Self, &T) -> Result<()>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn next_lit(&mut self, pos: BytePos) -> Option<Literal>
[src]
fn next_lit(&mut self, pos: BytePos) -> Option<Literal>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn maybe_print_comment(&mut self, pos: BytePos) -> Result<()>
[src]
fn maybe_print_comment(&mut self, pos: BytePos) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_comment(&mut self, cmnt: &Comment) -> Result<()>
[src]
fn print_comment(&mut self, cmnt: &Comment) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn next_comment(&mut self) -> Option<Comment>
[src]
fn next_comment(&mut self) -> Option<Comment>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_literal(&mut self, lit: &Lit) -> Result<()>
[src]
fn print_literal(&mut self, lit: &Lit) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_string(&mut self, st: &str, style: StrStyle) -> Result<()>
[src]
fn print_string(&mut self, st: &str, style: StrStyle) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_inner_attributes(&mut self, attrs: &[Attribute]) -> Result<()>
[src]
fn print_inner_attributes(&mut self, attrs: &[Attribute]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_inner_attributes_no_trailing_hardbreak(
&mut self,
attrs: &[Attribute]
) -> Result<()>
[src]
fn print_inner_attributes_no_trailing_hardbreak(
&mut self,
attrs: &[Attribute]
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_outer_attributes(&mut self, attrs: &[Attribute]) -> Result<()>
[src]
fn print_outer_attributes(&mut self, attrs: &[Attribute]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_inner_attributes_inline(&mut self, attrs: &[Attribute]) -> Result<()>
[src]
fn print_inner_attributes_inline(&mut self, attrs: &[Attribute]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_outer_attributes_inline(&mut self, attrs: &[Attribute]) -> Result<()>
[src]
fn print_outer_attributes_inline(&mut self, attrs: &[Attribute]) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_either_attributes(
&mut self,
attrs: &[Attribute],
kind: AttrStyle,
is_inline: bool,
trailing_hardbreak: bool
) -> Result<()>
[src]
fn print_either_attributes(
&mut self,
attrs: &[Attribute],
kind: AttrStyle,
is_inline: bool,
trailing_hardbreak: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_attribute_path(&mut self, path: &Path) -> Result<()>
[src]
fn print_attribute_path(&mut self, path: &Path) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_attribute(&mut self, attr: &Attribute) -> Result<()>
[src]
fn print_attribute(&mut self, attr: &Attribute) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_attribute_inline(
&mut self,
attr: &Attribute,
is_inline: bool
) -> Result<()>
[src]
fn print_attribute_inline(
&mut self,
attr: &Attribute,
is_inline: bool
) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_meta_list_item(&mut self, item: &NestedMetaItem) -> Result<()>
[src]
fn print_meta_list_item(&mut self, item: &NestedMetaItem) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_meta_item(&mut self, item: &MetaItem) -> Result<()>
[src]
fn print_meta_item(&mut self, item: &MetaItem) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_tt(&mut self, tt: TokenTree) -> Result<()>
[src]
fn print_tt(&mut self, tt: TokenTree) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
This doesn't deserve to be called "pretty" printing, but it should be meaning-preserving. A quick hack that might help would be to look at the spans embedded in the TTs to decide where to put spaces and newlines. But it'd be better to parse these according to the grammar of the appropriate macro, transcribe back into the grammar we just parsed from, and then pretty-print the resulting AST nodes (so, e.g., we print expression arguments as expressions). It can be done! I think. Read more
fn print_tts(&mut self, tts: TokenStream) -> Result<()>
[src]
fn print_tts(&mut self, tts: TokenStream) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn space_if_not_bol(&mut self) -> Result<()>
[src]
fn space_if_not_bol(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn nbsp(&mut self) -> Result<()>
[src]
fn nbsp(&mut self) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_dollar_crate(&mut self, ctxt: SyntaxContext) -> Result<()>
[src]
fn print_dollar_crate(&mut self, ctxt: SyntaxContext) -> Result<()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?