Home
last modified time | relevance | path

Searched refs:is_none (Results 1 – 20 of 20) sorted by relevance

/linux/rust/syn/
H A Dfixup.rs400 … && matches!(expr, Expr::Block(expr) if expr.attrs.is_empty() && expr.label.is_none())) in parenthesize()
431 Expr::Range(e) if e.start.is_none() => return Precedence::Prefix, in precedence()
489 Expr::Range(e) => e.start.is_none() || fixup.previous_operator < Precedence::Assign, in scan_left()
657 if bailout_offset >= 1 || e.label.is_none() && classify::expr_leading_label(value) { in scan_right()
690 … || matches!(&*e.body, Expr::Block(body) if body.attrs.is_empty() && body.label.is_none()) in scan_right()
H A Dpath.rs85 if self.leading_colon.is_none() in get_ident()
87 && self.segments[0].arguments.is_none() in get_ident()
165 pub fn is_none(&self) -> bool { in is_none() method
332 if ty.qself.is_none() in parse()
333 && ty.path.leading_colon.is_none() in parse()
644 .all(|segment| segment.arguments.is_none()) in is_mod_style()
H A Dpat.rs425 if qself.is_none() in pat_path_or_macro_or_struct_or_range()
570 if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:]) in field_pat()
769 Pat::Range(pat) if pat.start.is_none() || pat.end.is_none() => { in pat_slice()
H A Ditem.rs1044 if generics.lt_token.is_none() && generics.where_clause.is_none() => in parse_rest_of_item()
1178 if generics.where_clause.is_none() => in parse()
1340 let tree = parse_use_tree(input, allow_crate_root_in_path && leading_colon.is_none())?; in parse_item_use()
1520 && unsafety.is_none() in parse_signature()
1853 let has_safe = sig.is_none(); in parse()
1882 unsafety.is_none() && token::parsing::peek_keyword(input.cursor(), "safe"); in parse()
2076 Some(ty) if colon_token.is_none() => ty, in parse_item_type()
2360 if generics.lt_token.is_none() && generics.where_clause.is_none() { in parse()
2386 && defaultness.is_none() in parse()
2644 if has_visibility || is_const_impl || is_impl_for && trait_.is_none() { in parse_impl()
[all …]
H A Dtt.rs34 s2.next().is_none() in eq()
H A Dpunctuated.rs66 self.inner.len() == 0 && self.last.is_none() in is_empty()
231 self.last.is_none() && !self.is_empty() in trailing_punct()
239 self.last.is_none() in empty_or_trailing()
H A Dderive.rs160 if where_clause.is_none() && lookahead.peek(token::Paren) {
H A Dstmt.rs166 stmt.semi_token.is_none() && !stmt.mac.delimiter.is_brace() in parse_within()
H A Dparse.rs271 if old_span.is_none() { in drop()
H A Dty.rs350 if arguments.is_none() { in ambig_ty()
1018 } else if has_mut_self && name.is_none() { in parse_bare_fn_arg()
H A Dgenerics.rs856 if lifetimes.is_none() && matches!(modifier, TraitBoundModifier::Maybe(_)) { in do_parse()
1456 && expr.qself.is_none() in print_const_argument()
H A Dexpr.rs1534 let const_token: Option<Token![const]> = if raw.is_some() && mutability.is_none() { in unary_expr()
1964 if qself.is_none() in rest_of_path_or_macro_or_struct()
3464 e.label.is_none() && classify::expr_leading_label(value), in print_expr_break()
3558 … || matches!(&*e.body, Expr::Block(body) if body.attrs.is_empty() && body.label.is_none()) in print_expr_closure()
3782 && arm.comma.is_none() in to_tokens()
/linux/drivers/android/binder/range_alloc/
H A Dmod.rs318 if self.need_empty_array_alloc && self.args.empty_array_alloc.is_none() { in make_alloc()
321 if self.need_new_tree_alloc && self.args.new_tree_alloc.is_none() { in make_alloc()
324 if self.need_tree_alloc && self.args.tree_alloc.is_none() { in make_alloc()
H A Dtree.rs96 first_value.state.is_none() in is_empty()
270 Some((_, next)) if next.state.is_none() => { in reservation_abort()
289 Some((_, prev)) if prev.state.is_none() => { in reservation_abort()
/linux/rust/macros/
H A Dconcat_idents.rs
H A Dpaste.rs38 span.is_none(), in concat_helper()
/linux/scripts/gdb/linux/
H A Dmapletree.py57 def is_none(self): member in Mas
235 if mas.is_none():
/linux/rust/pin-init/internal/src/
H A Dinit.rs202 && segments[0].arguments.is_none()
204 && segments[1].arguments.is_none() =>
/linux/drivers/android/binder/
H A Dpage_range.rs529 if page.is_none() { in iterate()
H A Dthread.rs403 self.current_transaction.is_none() && !self.process_work_list && self.is_looper() in should_use_process_work_queue()