Home
last modified time | relevance | path

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

1234567

/third_party/rust/crates/clap/src/
Dmacros.rs296 if arg.get_long().is_none() && arg.get_short().is_none() {
323 if arg.get_long().is_none() && arg.get_short().is_none() {
350 if arg.get_long().is_none() && arg.get_short().is_none() {
379 if arg.get_long().is_none() && arg.get_short().is_none() {
405 if $arg.get_long().is_none() && $arg.get_short().is_none() {
/third_party/rust/crates/signal-hook/src/low_level/
Dchannel.rs179 assert!(channel.recv().is_none()); in new_empty()
180 assert!(channel.recv().is_none()); in new_empty()
188 assert!(channel.recv().is_none()); in pass_value()
197 assert!(channel.recv().is_none()); in multiple()
210 assert!(channel.recv().is_none()); in overflow()
/third_party/rust/crates/tracing/tracing-mock/src/
Dlib.rs37 provided_parent.is_none(), in check_parent_name()
59 provided_parent.is_none(), in check_parent_name()
67 parent_name.is_none(), in check_parent_name()
75 assert!(provided_parent.is_none(), in check_parent_name()
/third_party/rust/crates/env_logger/src/filter/
Dmod.rs702 assert!(filter.is_none()); in parse_spec_valid()
712 assert!(filter.is_none()); in parse_spec_invalid_crate()
722 assert!(filter.is_none()); in parse_spec_invalid_level()
732 assert!(filter.is_none()); in parse_spec_string_level()
742 assert!(filter.is_none()); in parse_spec_empty_level()
750 assert!(filter.is_none()); in parse_spec_empty_level_isolated()
759 assert!(filter.is_none()); in parse_spec_blank_level_isolated()
769 assert!(filter.is_none()); in parse_spec_blank_level_isolated_comma_only()
780 assert!(filter.is_none()); in parse_spec_blank_level_isolated_comma_blank()
791 assert!(filter.is_none()); in parse_spec_blank_level_isolated_blank_comma()
[all …]
/third_party/rust/crates/peeking_take_while/src/
Dlib.rs198 assert!(it1.next().is_none()); in not_fused()
200 assert!(it1.next().is_none()); in not_fused()
215 assert!(it1.next().is_none()); in fused()
216 assert!(it1.next().is_none()); in fused()
/third_party/rust/crates/regex/src/
Dinput.rs28 self.c.is_none() && self.byte.is_none() in is_end()
294 if c1.is_none() && !at.is_start() { in is_empty_match()
297 if c2.is_none() && !at.is_end() { in is_empty_match()
308 if c1.is_none() && !at.is_start() { in is_empty_match()
311 if c2.is_none() && !at.is_end() { in is_empty_match()
360 pub fn is_none(self) -> bool { in is_none() method
/third_party/rust/crates/syn/tests/
Dtest_path.rs69 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
84 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
103 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
/third_party/rust/crates/rustix/tests/net/
Daddr.rs56 assert!(SocketAddrUnix::new("").unwrap().path().is_none()); in test_unix_addr()
63 .is_none()); in test_unix_addr()
90 .is_none()); in test_unix_addr()
Dsockopt.rs13 .is_none() in test_sockopts()
24 .is_none()); in test_sockopts()
/third_party/rust/crates/tracing/tracing-subscriber/src/registry/
Dextensions.rs88 assert!(self.replace(val).is_none()) in insert()
217 assert!(extensions.get::<i32>().is_none()); in test_extensions()
266 val1_dropped.upgrade().is_none(), in clear_drops_elements()
270 val2_dropped.upgrade().is_none(), in clear_drops_elements()
/third_party/rust/crates/once_cell/tests/
Dit.rs12 assert!(c.get().is_none()); in once_cell()
30 assert!(c.get_mut().is_none()); in once_cell_get_mut()
63 assert!(c.get().is_none()); in clone()
269 assert!(c.get().is_none()); in once_cell()
290 assert!(c.get_mut().is_none()); in once_cell_get_mut()
337 assert!(c.get().is_none()); in clone()
347 assert!(cell.get().is_none()); in get_or_try_init()
352 assert!(cell.get().is_none()); in get_or_try_init()
455 assert!(status.is_none()); in reentrant_init()
911 assert!(cell.get().is_none()); in once_box_set()
[all …]
/third_party/rust/crates/bindgen/bindgen/ir/
Dcontext.rs677 let is_unnamed = is_type && item.expect_type().name().is_none(); in add_item()
691 old_item.is_none(), in add_item()
750 assert!(self.resolve_item_fallible(item.id()).is_none()); in add_item_to_module()
801 old_item.is_none(), in add_type_param()
809 old_named_ty.is_none(), in add_type_param()
963 assert!(existing.is_none()); in with_loaned_item()
1262 assert!(self.sizedness.is_none()); in compute_sizedness()
1284 assert!(self.have_vtable.is_none()); in compute_has_vtable()
1308 assert!(self.have_destructor.is_none()); in compute_has_destructor()
1418 assert!(old_item.is_none(), "Inserted type twice?"); in add_builtin_item()
[all …]
/third_party/rust/crates/clap/clap_derive/src/
Ditem.rs353 Some(MagicAttrName::Subcommand) if attr.value.is_none() => { in infer_kind()
366 Some(MagicAttrName::ExternalSubcommand) if attr.value.is_none() => { in infer_kind()
374 Some(MagicAttrName::Flatten) if attr.value.is_none() => { in infer_kind()
439 Some(MagicAttrName::Short) if attr.value.is_none() => { in push_attrs()
449 Some(MagicAttrName::Long) if attr.value.is_none() => { in push_attrs()
455 Some(MagicAttrName::ValueParser) if attr.value.is_none() => { in push_attrs()
467 Some(MagicAttrName::Action) if attr.value.is_none() => { in push_attrs()
479 Some(MagicAttrName::Env) if attr.value.is_none() => { in push_attrs()
489 Some(MagicAttrName::ValueEnum) if attr.value.is_none() => { in push_attrs()
495 Some(MagicAttrName::VerbatimDocComment) if attr.value.is_none() => { in push_attrs()
[all …]
/third_party/rust/crates/serde/serde_derive/src/internals/
Dreceiver.rs61 if bracketed.colon2_token.is_none() && !bracketed.args.is_empty() { in self_to_expr_path()
77 if node.qself.is_none() && node.path.is_ident("Self") { in visit_type_mut()
92 if ty.qself.is_none() { in visit_type_path_mut()
100 if expr.qself.is_none() { in visit_expr_path_mut()
/third_party/rust/crates/log/src/kv/
Dvalue.rs841 assert!(Value::from_display(&42).to_u64().is_none()); in test_capture_fmt()
842 assert!(Value::from_debug(&42).to_u64().is_none()); in test_capture_fmt()
915 assert!(v.to_u64().is_none()); in test_to_number()
916 assert!(v.to_i64().is_none()); in test_to_number()
917 assert!(v.to_f64().is_none()); in test_to_number()
939 assert!(v.to_borrowed_str().is_none()); in test_to_str()
942 assert!(v.to_str().is_none()); in test_to_str()
958 assert!(v.to_bool().is_none()); in test_to_bool()
974 assert!(v.to_char().is_none()); in test_to_char()
/third_party/rust/crates/libc/
Dbuild.rs156 if output.is_none() { in which_freebsd()
165 if stdout.is_none() { in which_freebsd()
/third_party/rust/crates/clap/clap_lex/tests/
Dparsed.rs78 assert!(next.to_short().is_none()); in to_short_stdio()
90 assert!(next.to_short().is_none()); in to_short_escape()
102 assert!(next.to_short().is_none()); in to_short_long()
/third_party/rust/crates/proc-macro2/tests/
Dcomments.rs36 assert!(iter.next().is_none(), "unexpected token {:?}", tokens); in lit_of_doc_comment()
54 assert!(iter.next().is_none(), "unexpected token {:?}", tokens); in lit_of_doc_comment()
Dtest.rs243 assert!(iter.next().is_none()); in literal_iter_negative()
391 assert!(joined2.is_none()); in span_join()
447 assert!(tts.next().is_none()); in raw_identifier()
588 assert!(tokens.next().is_none()); in tuple_indexing()
/third_party/rust/crates/clap/examples/
Dgit.rs78 if path.is_none() { in main()
81 if path.is_none() { in main()
Dgit-derive.rs113 if path.is_none() { in main()
116 if path.is_none() { in main()
/third_party/rust/crates/clap/clap_lex/src/
Dlib.rs245 self.peek_os(cursor).is_none() in is_end()
428 self.invalid_suffix.is_none() && self.utf8_prefix.as_str().is_empty() in is_empty()
435 self.invalid_suffix.is_none() && self.utf8_prefix.as_str().parse::<f64>().is_ok() in is_number()
/third_party/rust/crates/cxx/syntax/
Dcheck.rs84 if Atom::from(ident).is_none() in check_type_ident()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
301 if ty.unsafety.is_none() { in check_type_fn()
412 if !efn.generics.params.is_empty() && efn.unsafety.is_none() { in check_api_fn()
468 if efn.sig.unsafety.is_none() { in check_api_fn()
524 if Atom::from(&inner.rust).is_none() { in check_api_impl()
570 Type::Ident(ident) if Atom::from(&ident.rust).is_none() => { in check_mut_return_restriction()
/third_party/rust/crates/cxx/gen/build/src/
Dcargo.rs28 if name == "test" && query_value.is_none() { in eval()
39 if name == "debug_assertions" && query_value.is_none() { in eval()
/third_party/rust/crates/syn/src/
Dpath.rs92 pub fn is_none(&self) -> bool { in is_none() method
287 if argument.qself.is_none() in parse()
288 && argument.path.leading_colon.is_none() in parse()
593 if self.leading_colon.is_none() in get_ident()
595 && self.segments[0].arguments.is_none() in get_ident()

1234567