Home
last modified time | relevance | path

Searched refs:is_some (Results 1 – 25 of 28) sorted by relevance

12

/linux/rust/zerocopy/src/
H A Ddeprecated.rs226 assert!(r.is_some()); in test_deprecated_ref_methods()
229 assert!(r.is_some()); in test_deprecated_ref_methods()
232 assert!(r.is_some()); in test_deprecated_ref_methods()
235 assert!(r.is_some()); in test_deprecated_ref_methods()
238 assert!(r.is_some()); in test_deprecated_ref_methods()
241 assert!(r.is_some()); in test_deprecated_ref_methods()
244 assert!(r.is_some()); in test_deprecated_ref_methods()
247 assert!(r.is_some()); in test_deprecated_ref_methods()
250 assert!(r.is_some()); in test_deprecated_ref_methods()
253 assert!(r.is_some()); in test_deprecated_ref_methods()
[all …]
H A Dimpls.rs145 char::from_u32(c).is_some()
187 $nonzero::new(n.read().into_inner()).is_some()
1825 … assert!(res.is_some(), "{}::try_ref_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
1849 … assert!(res.is_some(), "{}::try_mut_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
1855 … assert!(res.is_some(), "{}::try_read_from_bytes: got `None`, expected `Some`", stringify!($ty)); in test_impls()
H A Dlayout.rs642 addr.checked_add(bytes_len).is_some(), in validate_cast_and_convert_metadata()
1409 …assert!(msg.is_some() || cfg!(no_zerocopy_panic_in_const_and_vec_try_reserve_1_57_0), "non-string … in test_validate_cast_and_convert_metadata()
1631 let dst = args.elem_size.is_some(); in test_validate_rust_layout()
/linux/rust/syn/
H A Dscan_expr.rs222 Input::ConsumeAny => input.parse::<Option<TokenTree>>()?.is_some(), in scan_expr()
235 Input::ConsumeIdent => input.parse::<Option<Ident>>()?.is_some(), in scan_expr()
236 Input::ConsumeLifetime => input.parse::<Option<Lifetime>>()?.is_some(), in scan_expr()
237 Input::ConsumeLiteral => input.parse::<Option<Lit>>()?.is_some(), in scan_expr()
H A Dclassify.rs135 Expr::Block(e) => return e.label.is_some(), in expr_leading_label()
136 Expr::ForLoop(e) => return e.label.is_some(), in expr_leading_label()
137 Expr::Loop(e) => return e.label.is_some(), in expr_leading_label()
138 Expr::While(e) => return e.label.is_some(), in expr_leading_label()
H A Dpat.rs401 if leading_vert.is_some() in multi_pat_impl()
564 let member = if boxed.is_some() || by_ref.is_some() || mutability.is_some() { in field_pat()
586 let pat = if boxed.is_some() { in field_pat()
627 if end.is_some() { in pat_range_half_open()
890 if !self.fields.empty_or_trailing() && self.rest.is_some() { in to_tokens()
H A Dgenerics.rs708 if colon_token.is_some() { in parse()
727 let default = if eq_token.is_some() { in parse()
870 if lifetimes.is_some() { in do_parse()
1176 trailing_or_empty = param.punct().is_some(); in to_tokens()
1210 trailing_or_empty = param.punct().is_some(); in to_tokens()
1264 trailing_or_empty = param.punct().is_some(); in to_tokens()
1422 trailing_or_empty = param.punct().is_some(); in to_tokens()
1457 && expr.path.get_ident().is_some() => in print_const_argument()
H A Dext.rs112 cursor.ident().is_some() in peek()
H A Dtoken.rs170 cursor.$get().is_some()
653 cursor.group(Delimiter::Parenthesis).is_some() in peek()
664 cursor.group(Delimiter::Brace).is_some() in peek()
675 cursor.group(Delimiter::Bracket).is_some() in peek()
686 cursor.group(Delimiter::None).is_some() in peek()
H A Dstmt.rs395 if semi_token.is_some() || mac.delimiter.is_brace() => in stmt_expr()
406 if semi_token.is_some() { in stmt_expr()
460 init.diverge.is_some() && classify::expr_trailing_brace(&init.expr), in to_tokens()
H A Drestriction.rs140 pub(crate) fn is_some(&self) -> bool { in is_some() method
H A Ditem.rs1206 if colon_token.is_some() { in parse_optional_bounds()
1415 allow_crate_root_in_path && content.parse::<Option<Token![::]>>()?.is_some(); in parse_use_tree()
1664 let colon_token: Option<Token![:]> = if reference.is_some() { in parse()
1669 let ty: Type = if colon_token.is_some() { in parse()
1897 if unsafety.is_some() || safe || has_value { in parse()
2006 if colon_token.is_some() || ty.is_some() { in parse_foreign_item_type()
2227 if colon_token.is_some() { in parse_rest_of_trait()
2523 if vis.is_some() { in parse_trait_item_type()
2567 let has_visibility = allow_verbatim_impl && input.parse::<Visibility>()?.is_some(); in parse_impl()
2814 if allow_omitted_body && input.parse::<Option<Token![;]>>()?.is_some() { in parse_impl_item_fn()
[all …]
H A Dpunctuated.rs74 self.inner.len() + if self.last.is_some() { 1 } else { 0 } in len()
198 self.last.is_some(), in push_punct()
209 if self.last.is_some() { in pop()
219 if self.last.is_some() { in pop_punct()
H A Dty.rs518 if ty.qself.is_some() { in ambig_ty()
535 if lifetimes.is_some() || allow_plus && input.peek(Token![+]) { in ambig_ty()
573 Ok(if star_token.is_some() { in ambig_ty()
H A Dpath.rs820 trailing_or_empty = param.punct().is_some(); in print_angle_bracketed_generic_arguments()
840 trailing_or_empty = param.punct().is_some(); in print_angle_bracketed_generic_arguments()
/linux/rust/kernel/
H A Ddriver.rs
H A Dopp.rs381 if self.clk_names.is_some() { in set_clk_names()
395 if self.prop_name.is_some() { in set_prop_name()
405 if self.regulator_names.is_some() { in set_regulator_names()
420 if self.required_dev.is_some() { in set_required_dev()
430 if self.supported_hw.is_some() { in set_supported_hw()
H A Di2c.rs104 T::ACPI_ID_TABLE.is_some() || T::OF_ID_TABLE.is_some() || T::I2C_ID_TABLE.is_some(), in register()
/linux/rust/macros/
H A Dhelpers.rs
/linux/samples/rust/
H A Drust_debugfs.rs104 if parts.next().is_some() {
/linux/drivers/android/binder/
H A Dcontext.rs112 if manager.node.is_some() { in set_manager_node()
/linux/rust/zerocopy-derive/derive/
H A Dmod.rs105 if repr.get_packed().is_some() { in derive_split_at()
/linux/drivers/android/binder/range_alloc/
H A Dtree.rs90 if tree_iter.next().is_some() { in is_empty()
110 .filter(|desc| desc.state.is_some()) in count_buffers()
/linux/rust/proc-macro2/
H A Dparse.rs592 b => b.is_some(), in byte()
615 ch => ch.is_some(), in character()
/linux/rust/zerocopy-derive/
H A Drepr.rs491 if compound.is_some() || align.is_some() { in from_attrs_inner()

12