/external/rust/cxx/book/src/binding/ |
D | box.md | 1 {{#title rust::Box<T> — Rust ♡ C++}} 2 # rust::Box\<T\> 14 class Box final { 21 Box(Box &&) noexcept; 22 ~Box() noexcept; 24 explicit Box(const T &); 25 explicit Box(T &&); 27 Box &operator=(Box &&) noexcept; 35 static Box in_place(Fields &&...); 37 void swap(Box &) noexcept; [all …]
|
/external/rust/crates/futures-task/src/ |
D | future_obj.rs | 224 use alloc::boxed::Box; 226 unsafe impl<'a, T, F> UnsafeFutureObj<'a, T> for Box<F> implementation 230 Box::into_raw(self) in into_raw() 234 drop(Box::from_raw(ptr as *mut F)) in drop() 238 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + 'a> { implementation 240 Box::into_raw(self) in into_raw() 244 drop(Box::from_raw(ptr)) in drop() 248 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + Send + 'a> { implementation 250 Box::into_raw(self) in into_raw() 254 drop(Box::from_raw(ptr)) in drop() [all …]
|
/external/rust/crates/lazy_static/tests/ |
D | test.rs | 9 static ref ARRAY_BOXES: [Box<u32>; 3] = [Box::new(1), Box::new(2), Box::new(3)]; 53 assert_eq!(&*ARRAY_BOXES, &[Box::new(1), Box::new(2), Box::new(3)]); in test_basic() 77 pub static ref FOO: Box<u32> = Box::new(0); 78 static ref BAR: Box<u32> = Box::new(98); 83 pub(in visibility) static ref BAZ: Box<u32> = Box::new(42); 84 pub(crate) static ref BAG: Box<u32> = Box::new(37); 99 assert_eq!(*visibility::FOO, Box::new(0)); in test_visibility() 100 assert_eq!(*visibility::inner::BAG, Box::new(37)); in test_visibility()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
D | Path.java | 20 import com.coremedia.iso.boxes.Box; 36 public static String createPath(Box box) { in createPath() 40 private static String createPath(Box box, String path) { in createPath() 52 public static Box getPath(Box box, String path) { in getPath() 53 List<Box> all = getPaths(box, path); in getPath() 58 public static List<Box> getPaths(Box box, String path) { in getPaths() 60 Box isoFile = box; in getPaths() 91 List<Box> children = new LinkedList<Box>(); in getPaths() 93 for (Box box1 : ((ContainerBox) box).getBoxes()) { in getPaths() 111 public static boolean isContained(Box box, String path) { in isContained()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/ |
D | TestSubtypesExternalPropertyMissingProperty.java | 19 static class Box { class in TestSubtypesExternalPropertyMissingProperty 24 public Box() { in Box() method in TestSubtypesExternalPropertyMissingProperty.Box 27 public Box(String type, Fruit fruit) { in Box() method in TestSubtypesExternalPropertyMissingProperty.Box 99 private static final Box orangeBox = new Box("orange", orange); 106 private static Box appleBox = new Box("apple", apple); 189 Box deserOrangeBox = MAPPER.readValue(orangeBoxJson, Box.class); in checkOrangeBox() 199 Box deserAppleBox = MAPPER.readValue(appleBoxJson, Box.class); in checkAppleBox() 209 Box deserOrangeBox = MAPPER.readValue(json, Box.class); in checkOrangeBoxEmpty() 219 Box deserAppleBox = MAPPER.readValue(json, Box.class); in checkAppleBoxEmpty() 229 Box deserOrangeBox = MAPPER.readValue(json, Box.class); in checkOrangeBoxNull() [all …]
|
D | TestPropertyCreatorSubtypesExternalPropertyMissingProperty.java | 24 static class Box { class in TestPropertyCreatorSubtypesExternalPropertyMissingProperty 33 private Box(String type, Fruit fruit) { in Box() method in TestPropertyCreatorSubtypesExternalPropertyMissingProperty.Box 39 … public static Box getBox(@JsonProperty("type") String type, @JsonProperty("fruit") Fruit fruit) { in getBox() 40 return new Box(type, fruit); in getBox() 106 private static final Box orangeBox = new Box("orange", orange); 113 private static Box appleBox = new Box("apple", apple); 130 BOX_READER_PASS = mapper.readerFor(Box.class) 132 BOX_READER_FAIL = mapper.readerFor(Box.class) 185 Box deserOrangeBox = reader.readValue(orangeBoxJson); in checkOrangeBox() 195 Box deserAppleBox = reader.readValue(appleBoxJson); in checkAppleBox() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
D | FullContainerBox.java | 20 import com.coremedia.iso.boxes.Box; 37 protected List<Box> boxes = new LinkedList<Box>(); 41 public void setBoxes(List<Box> boxes) { in setBoxes() 42 this.boxes = new LinkedList<Box>(boxes); in setBoxes() 46 public <T extends Box> List<T> getBoxes(Class<T> clazz) { in getBoxes() 51 public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive) { in getBoxes() 53 for (Box boxe : boxes) { //clazz.isInstance(boxe) / clazz == boxe.getClass()? in getBoxes() 69 for (Box boxe : boxes) { in getContentSize() 75 public void addBox(Box b) { in addBox() 80 public void removeBox(Box b) { in removeBox() [all …]
|
D | AbstractContainerBox.java | 20 import com.coremedia.iso.boxes.Box; 41 protected List<Box> boxes = new LinkedList<Box>(); 47 for (Box boxe : boxes) { in getContentSize() 57 public List<Box> getBoxes() { in getBoxes() 61 public void setBoxes(List<Box> boxes) { in setBoxes() 62 this.boxes = new LinkedList<Box>(boxes); in setBoxes() 66 public <T extends Box> List<T> getBoxes(Class<T> clazz) { in getBoxes() 71 public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive) { in getBoxes() 73 for (Box boxe : boxes) { in getBoxes() 93 public void addBox(Box b) { in addBox() [all …]
|
/external/rust/crates/nom/tests/ |
D | arithmetic_ast.rs | 20 Add(Box<Expr>, Box<Expr>), 21 Sub(Box<Expr>, Box<Expr>), 22 Mul(Box<Expr>, Box<Expr>), 23 Div(Box<Expr>, Box<Expr>), 24 Paren(Box<Expr>), 68 map(expr, |e| Expr::Paren(Box::new(e))), in parens() 92 Oper::Add => Expr::Add(Box::new(acc), Box::new(expr)), in fold_exprs() 93 Oper::Sub => Expr::Sub(Box::new(acc), Box::new(expr)), in fold_exprs() 94 Oper::Mul => Expr::Mul(Box::new(acc), Box::new(expr)), in fold_exprs() 95 Oper::Div => Expr::Div(Box::new(acc), Box::new(expr)), in fold_exprs()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
D | SampleEntry.java | 23 import com.coremedia.iso.boxes.Box; 48 protected List<Box> boxes = new LinkedList<Box>(); 68 public void setBoxes(List<Box> boxes) { in setBoxes() 69 this.boxes = new LinkedList<Box>(boxes); in setBoxes() 72 public void addBox(Box b) { in addBox() 77 public boolean removeBox(Box b) { in removeBox() 82 public List<Box> getBoxes() { in getBoxes() 87 public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive) { in getBoxes() 89 for (Box boxe : boxes) { //clazz.isInstance(boxe) / clazz == boxe.getClass()? in getBoxes() 104 public <T extends Box> List<T> getBoxes(Class<T> clazz) { in getBoxes() [all …]
|
/external/rust/crates/tokio/src/runtime/thread_pool/ |
D | atomic_cell.rs | 14 pub(super) fn new(data: Option<Box<T>>) -> AtomicCell<T> { in new() 20 pub(super) fn swap(&self, val: Option<Box<T>>) -> Option<Box<T>> { in swap() 25 pub(super) fn set(&self, val: Box<T>) { in set() 29 pub(super) fn take(&self) -> Option<Box<T>> { in take() 34 fn to_raw<T>(data: Option<Box<T>>) -> *mut T { in to_raw() 35 data.map(Box::into_raw).unwrap_or(ptr::null_mut()) in to_raw() 38 fn from_raw<T>(val: *mut T) -> Option<Box<T>> { in from_raw() 42 Some(unsafe { Box::from_raw(val) }) in from_raw()
|
/external/flac/doc/ |
D | isoflac.txt | 12 3.3.2 FLAC Specific Box 67 list of the File Type Box. The minimal support of the 76 + The handler_type field in the Handler Reference Box 79 + The Media Information Box shall contain the Sound Media 80 Header Box. 93 See section 'FLAC Specific Box' for the definition of 110 shall be present inside the Sample Table Box. This version 113 sample entry includes exactly one FLAC Specific Box 196 3.3.2 FLAC Specific Box 198 Exactly one FLAC Specific Box shall be present in each [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | SampleTableBox.java | 44 for (Box box : boxes) { in getSampleDescriptionBox() 53 for (Box box : boxes) { in getSampleSizeBox() 62 for (Box box : boxes) { in getSampleToChunkBox() 71 for (Box box : boxes) { in getChunkOffsetBox() 81 Box box = boxes.get(i); in setChunkOffsetBox() 89 for (Box box : boxes) { in getTimeToSampleBox() 98 for (Box box : boxes) { in getSyncSampleBox() 107 for (Box box : boxes) { in getCompositionTimeToSample() 116 for (Box box : boxes) { in getSampleDependencyTypeBox()
|
/external/rust/crates/bstr/src/ |
D | bstr.rs | 60 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes() 61 unsafe { Box::from_raw(Box::into_raw(slice) as _) } in from_boxed_bytes() 66 pub(crate) fn into_boxed_bytes(slice: Box<BStr>) -> Box<[u8]> { in into_boxed_bytes() 67 unsafe { Box::from_raw(Box::into_raw(slice) as _) } in into_boxed_bytes()
|
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/ |
D | ArrayElementInlineFuncTest.kt | 10 private val refArr = atomicArrayOfNulls<Box>(5) in <lambda>() 12 private data class Box(val n: Int) in <lambda>() class in kotlinx.atomicfu.test.ArrayElementInlineFuncTest 22 private fun action(cur: Box?) = cur?.let { Box(cur.n * 10) } in <lambda>() 26 refArr[0].lazySet(Box(5)) in <lambda>() 27 refArr[0].update { cur -> cur?.let { Box(cur.n * 10) } } in <lambda>() 33 refArr[0].lazySet(Box(5)) in <lambda>() 40 refArr[0].lazySet(Box(5)) in <lambda>()
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Blit11.h | 39 const gl::Box &sourceArea, 43 const gl::Box &destArea, 56 const gl::Box &sourceArea, 60 const gl::Box &destArea, 66 const gl::Box &sourceArea, 69 const gl::Box &destArea, 76 const gl::Box &sourceArea, 80 const gl::Box &destArea, 93 using BlitConvertFunction = void(const gl::Box &sourceArea, 94 const gl::Box &destArea, [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/ |
D | DistinctUntilChangedTest.kt | 12 private class Box(val i: Int) in <lambda>() class in kotlinx.coroutines.flow.DistinctUntilChangedTest 23 emit(Box(1)) in <lambda>() 24 emit(Box(1)) in <lambda>() 25 emit(Box(2)) in <lambda>() 26 emit(Box(1)) in <lambda>() 30 val sum2 = flow.distinctUntilChangedBy(Box::i).map { it.i }.sum() in <lambda>() 38 emit(Box(1)) in <lambda>() 39 emit(Box(1)) in <lambda>() 40 emit(Box(2)) in <lambda>() 41 emit(Box(1)) in <lambda>()
|
/external/rust/crates/futures-executor/tests/ |
D | local_pool.rs | 46 spawn.spawn_local_obj(Box::pin(pending()).into()).unwrap(); in run_until_ignores_spawned() 55 spawn.spawn_local_obj(Box::pin(lazy(move |_| { in run_until_executes_spawned() 77 spawn.spawn_local_obj(Box::pin(lazy(move |_| { in run_executes_spawned() 78 spawn2.spawn_local_obj(Box::pin(lazy(move |_| { in run_executes_spawned() 100 spawn.spawn_local_obj(Box::pin(lazy(move |_| { in run_spawn_many() 126 spawn.spawn_local_obj(Box::pin(pending()).into()).unwrap(); in try_run_one_executes_one_ready() 129 spawn.spawn_local_obj(Box::pin(lazy(move |_| { in try_run_one_executes_one_ready() 133 spawn.spawn_local_obj(Box::pin(pending()).into()).unwrap(); in try_run_one_executes_one_ready() 157 spawn.spawn_local_obj(Box::pin(poll_fn(move |ctx| { in try_run_one_returns_on_no_progress() 188 spawn.spawn_local_obj(Box::pin(poll_fn(move |_| { in try_run_one_runs_sub_futures() [all …]
|
/external/rust/crates/grpcio/src/ |
D | server.rs | 44 fn box_clone(&self) -> Box<dyn CloneableHandler>; in box_clone() 58 fn box_clone(&self) -> Box<dyn CloneableHandler> { in box_clone() 59 Box::new(self.clone()) in box_clone() 91 _fetcher: Option<Box<Box<dyn ServerCredentialsFetcher + Send + Sync>>>, 109 _fetcher: Option<Box<Box<dyn ServerCredentialsFetcher + Send + Sync>>>, in with_cred() 195 let ch = Box::new(Handler::new(MethodType::Unary, h)); in add_unary_handler() 218 let ch = Box::new(Handler::new(MethodType::ClientStreaming, h)); in add_client_streaming_handler() 238 let ch = Box::new(Handler::new(MethodType::ServerStreaming, h)); in add_server_streaming_handler() 258 let ch = Box::new(Handler::new(MethodType::Duplex, h)); in add_duplex_streaming_handler() 280 fn box_clone(&self) -> Box<dyn ServerChecker>; in box_clone() [all …]
|
/external/rust/crates/rayon-core/src/ |
D | lib.rs | 126 panic_handler: Option<Box<PanicHandler>>, 129 get_thread_name: Option<Box<dyn FnMut(usize) -> String>>, 135 start_handler: Option<Box<StartHandler>>, 138 exit_handler: Option<Box<ExitHandler>>, 159 type PanicHandler = dyn Fn(Box<dyn Any + Send>) + Send + Sync; 412 self.get_thread_name = Some(Box::new(closure)); in thread_name() 448 fn take_panic_handler(&mut self) -> Option<Box<PanicHandler>> { in take_panic_handler() 468 H: Fn(Box<dyn Any + Send>) + Send + Sync + 'static, in panic_handler() 470 self.panic_handler = Some(Box::new(panic_handler)); in panic_handler() 524 fn take_start_handler(&mut self) -> Option<Box<StartHandler>> { in take_start_handler() [all …]
|
/external/rust/crates/once_cell/src/ |
D | race.rs | 169 use alloc::boxed::Box; 175 ghost: PhantomData<Option<Box<T>>>, 188 drop(unsafe { Box::from_raw(ptr) }) in drop() 212 pub fn set(&self, value: Box<T>) -> Result<(), Box<T>> { in set() 213 let ptr = Box::into_raw(value); in set() 221 let value = unsafe { Box::from_raw(ptr) }; in set() 235 F: FnOnce() -> Box<T>, in get_or_init() 238 match self.get_or_try_init(|| Ok::<Box<T>, Void>(f())) { in get_or_init() 253 F: FnOnce() -> Result<Box<T>, E>, in get_or_try_init() 259 ptr = Box::into_raw(val); in get_or_try_init() [all …]
|
/external/rust/crates/futures/tests/ |
D | futures_ordered.rs | 75 let (_a_tx, a_rx) = oneshot::channel::<Box<dyn Any + Send>>(); in queue_never_unblocked() 76 let (b_tx, b_rx) = oneshot::channel::<Box<dyn Any + Send>>(); in queue_never_unblocked() 77 let (c_tx, c_rx) = oneshot::channel::<Box<dyn Any + Send>>(); in queue_never_unblocked() 80 Box::new(a_rx) as Box<dyn Future<Output = _> + Unpin>, in queue_never_unblocked() 81 Box::new(future::try_select(b_rx, c_rx) in queue_never_unblocked() 83 .and_then(|e| future::ok(Box::new(e) as Box<dyn Any + Send>))) as _, in queue_never_unblocked() 91 b_tx.send(Box::new(())).unwrap(); in queue_never_unblocked() 93 c_tx.send(Box::new(())).unwrap(); in queue_never_unblocked()
|
D | try_join_all.rs | 9 F: FnOnce() -> Box<dyn Future<Output = T> + Unpin>, in assert_done() 22 assert_done(|| Box::new(try_join_all(vec![ok(1), ok(2)])), Ok::<_, usize>(vec![1, 2])); in collect_collects() 23 assert_done(|| Box::new(try_join_all(vec![ok(1), err(2)])), Err(2)); in collect_collects() 24 assert_done(|| Box::new(try_join_all(vec![ok(1)])), Ok::<_, usize>(vec![1])); in collect_collects() 40 fn sizes(bufs: Vec<&[u8]>) -> Box<dyn Future<Output = Result<Vec<usize>, ()>> + Unpin> { in try_join_all_iter_lifetime() 42 Box::new(try_join_all(iter)) in try_join_all_iter_lifetime() 55 || Box::new(vec![ok(1), ok(2)].into_iter().collect::<TryJoinAll<_>>()), in try_join_all_from_iter()
|
/external/rust/crates/intrusive-collections/src/ |
D | pointer_ops.rs | 9 use crate::alloc::boxed::Box; 103 unsafe impl<T: ?Sized> PointerOps for DefaultPointerOps<Box<T>> { 105 type Pointer = Box<T>; 108 unsafe fn from_raw(&self, raw: *const T) -> Box<T> { in from_raw() 109 Box::from_raw(raw as *mut T) in from_raw() 113 fn into_raw(&self, ptr: Box<T>) -> *const T { in into_raw() 114 Box::into_raw(ptr) as *const T in into_raw() 192 use std::boxed::Box; 201 let pointer_ops = DefaultPointerOps::<Box<_>>::new(); in test_box() 202 let p = Box::new(1); in test_box() [all …]
|
/external/adhd/cras/client/libcras/src/ |
D | libcras.rs | 475 ) -> std::result::Result<(Box<dyn StreamControl>, Box<dyn PlaybackBufferStream>), BoxError> in new_pinned_playback_stream() 478 Box::new(NoopStreamControl::new()), in new_pinned_playback_stream() 479 Box::new(self.create_stream::<CrasPlaybackData>( in new_pinned_playback_stream() 510 ) -> std::result::Result<(Box<dyn StreamControl>, Box<dyn CaptureBufferStream>), BoxError> { in new_pinned_capture_stream() 512 Box::new(NoopStreamControl::new()), in new_pinned_capture_stream() 513 Box::new(self.create_stream::<CrasCaptureData>( in new_pinned_capture_stream() 562 ) -> std::result::Result<(Box<dyn StreamControl>, Box<dyn PlaybackBufferStream>), BoxError> in new_playback_stream() 565 Box::new(NoopStreamControl::new()), in new_playback_stream() 566 Box::new(self.create_stream::<CrasPlaybackData>( in new_playback_stream() 584 ) -> std::result::Result<(Box<dyn StreamControl>, Box<dyn CaptureBufferStream>), BoxError> { in new_capture_stream() [all …]
|