Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 6 of 6) sorted by relevance

/rust/alloc/
Dborrow.rs14 pub use core::borrow::{Borrow, BorrowMut};
28 fn borrow(&self) -> &B { in borrow() function
202 let b: &B = o.borrow(); in clone()
210 (&mut Owned(ref mut dest), &Owned(ref o)) => o.borrow().clone_into(dest), in clone_from()
345 Owned(ref owned) => owned.borrow(), in deref()
Dslice.rs87 use core::borrow::{Borrow, BorrowMut};
101 use crate::borrow::ToOwned;
778 let size = slice.iter().map(|slice| slice.borrow().len()).sum(); in concat()
781 result.extend_from_slice(v.borrow()) in concat()
798 let size = slice.iter().map(|v| v.borrow().len()).sum::<usize>() + slice.len() - 1; in join()
800 result.extend_from_slice(first.borrow()); in join()
804 result.extend_from_slice(v.borrow()) in join()
822 slice.iter().map(|v| v.borrow().len()).sum::<usize>() + sep.len() * (slice.len() - 1); in join()
824 result.extend_from_slice(first.borrow()); in join()
828 result.extend_from_slice(v.borrow()) in join()
[all …]
Dboxed.rs139 use core::borrow;
161 use crate::borrow::Cow;
1926 impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Box<T, A> {
1927 fn borrow(&self) -> &T { in borrow() method
1933 impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for Box<T, A> {
Dlib.rs218 pub mod borrow; module
/rust/alloc/vec/
Dpartial_eq.rs5 use crate::borrow::Cow;
Dmod.rs75 use crate::borrow::{Cow, ToOwned};