Struct rustc::hir::print::State
[−]
[src]
pub struct State<'a> { pub s: Printer<'a>, // some fields omitted }
🔬 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?
Methods
impl<'a> State<'a>
[src]
pub fn print_node(&mut self, node: Node) -> Result<()>
[src]
🔬 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]
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]
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]
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]
pub fn cbox(&mut self, u: usize) -> Result<()>
[src]
🔬 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 nbsp(&mut self) -> Result<()>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
&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]
🔬 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]
🔬 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 space_if_not_bol(&mut self) -> Result<()>
[src]
🔬 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]
🔬 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]
🔬 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]
&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: &[Expr]) -> Result<()>
[src]
🔬 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]
🔬 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]
&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: &Lifetime) -> Result<()>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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
pub fn print_trait_ref(&mut self, t: &TraitRef) -> Result<()>
[src]
🔬 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,
name: Name,
span: Span,
visibility: &Visibility
) -> Result<()>
[src]
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
name: Name,
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]
🔬 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]
🔬 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, defaultness: Defaultness) -> Result<()>
[src]
🔬 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,
name: Name,
span: Span,
print_finalizer: bool
) -> Result<()>
[src]
&mut self,
struct_def: &VariantData,
generics: &Generics,
name: Name,
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]
🔬 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,
name: Name,
m: &MethodSig,
generics: &Generics,
vis: &Visibility,
arg_names: &[Spanned<Name>],
body_id: Option<BodyId>
) -> Result<()>
[src]
&mut self,
name: Name,
m: &MethodSig,
generics: &Generics,
vis: &Visibility,
arg_names: &[Spanned<Name>],
body_id: Option<BodyId>
) -> 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
&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]
&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]
&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?
pub fn print_if(
&mut self,
test: &Expr,
blk: &Expr,
elseopt: Option<&Expr>
) -> Result<()>
[src]
&mut self,
test: &Expr,
blk: &Expr,
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,
pat: &Pat,
expr: &Expr,
blk: &Block,
elseopt: Option<&Expr>
) -> Result<()>
[src]
&mut self,
pat: &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_expr_maybe_paren(&mut self, expr: &Expr, prec: i8) -> Result<()>
[src]
🔬 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]
🔬 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 { ... }
.
pub fn print_expr(&mut self, expr: &Expr) -> Result<()>
[src]
🔬 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]
🔬 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_decl(&mut self, decl: &Decl) -> Result<()>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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_path(
&mut self,
path: &Path,
colons_before_params: bool
) -> Result<()>
[src]
&mut self,
path: &Path,
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_qpath(
&mut self,
qpath: &QPath,
colons_before_params: bool
) -> Result<()>
[src]
&mut self,
qpath: &QPath,
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]
🔬 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<Name>,
generics: &Generics,
vis: &Visibility,
arg_names: &[Spanned<Name>],
body_id: Option<BodyId>
) -> Result<()>
[src]
&mut self,
decl: &FnDecl,
unsafety: Unsafety,
constness: Constness,
abi: Abi,
name: Option<Name>,
generics: &Generics,
vis: &Visibility,
arg_names: &[Spanned<Name>],
body_id: Option<BodyId>
) -> 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: CaptureClause
) -> Result<()>
[src]
&mut self,
capture_clause: CaptureClause
) -> 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]
&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]
🔬 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_def(&mut self, lifetime: &LifetimeDef) -> Result<()>
[src]
🔬 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_generics(&mut self, generics: &Generics) -> Result<()>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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<Name>,
generics: &Generics,
arg_names: &[Spanned<Name>]
) -> Result<()>
[src]
&mut self,
abi: Abi,
unsafety: Unsafety,
decl: &FnDecl,
name: Option<Name>,
generics: &Generics,
arg_names: &[Spanned<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 maybe_print_trailing_comment(
&mut self,
span: Span,
next_pos: Option<BytePos>
) -> Result<()>
[src]
&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]
🔬 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]
&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]
🔬 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]
&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]
🔬 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]
🔬 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]
fn writer(&mut self) -> &mut Printer<'a>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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]
🔬 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]
🔬 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]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error> where
F: FnMut(&mut Self, &T) -> Result<(), Error>,
[src]
F: FnMut(&mut Self, &T) -> Result<(), Error>,
🔬 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]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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]
🔬 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: &Spanned<LitKind>) -> Result<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
&mut self,
attrs: &[Attribute]
) -> Result<(), Error>
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
&mut self,
attrs: &[Attribute]
) -> Result<(), Error>
🔬 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<(), Error>
[src]
&mut self,
attrs: &[Attribute]
) -> Result<(), Error>
🔬 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<(), Error>
[src]
&mut self,
attrs: &[Attribute],
kind: AttrStyle,
is_inline: bool,
trailing_hardbreak: bool
) -> Result<(), Error>
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
&mut self,
attr: &Attribute,
is_inline: bool
) -> Result<(), Error>
🔬 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: &Spanned<NestedMetaItemKind>
) -> Result<(), Error>
[src]
&mut self,
item: &Spanned<NestedMetaItemKind>
) -> Result<(), Error>
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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<(), Error>
[src]
🔬 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?