Lines Matching refs:T

254 pub struct BqlCell<T> {
255 value: UnsafeCell<T>,
260 unsafe impl<T: Send> Send for BqlCell<T> {}
261 unsafe impl<T: Send> Sync for BqlCell<T> {}
263 impl<T: Copy> Clone for BqlCell<T> {
265 fn clone(&self) -> BqlCell<T> { in clone() argument
270 impl<T: Default> Default for BqlCell<T> {
273 fn default() -> BqlCell<T> { in default()
278 impl<T: PartialEq + Copy> PartialEq for BqlCell<T> {
280 fn eq(&self, other: &BqlCell<T>) -> bool { in eq()
285 impl<T: Eq + Copy> Eq for BqlCell<T> {}
287 impl<T: PartialOrd + Copy> PartialOrd for BqlCell<T> {
289 fn partial_cmp(&self, other: &BqlCell<T>) -> Option<Ordering> { in partial_cmp()
294 impl<T: Ord + Copy> Ord for BqlCell<T> {
296 fn cmp(&self, other: &BqlCell<T>) -> Ordering { in cmp()
301 impl<T> From<T> for BqlCell<T> {
303 fn from(t: T) -> BqlCell<T> { in from() argument
308 impl<T: fmt::Debug + Copy> fmt::Debug for BqlCell<T> {
314 impl<T: fmt::Display + Copy> fmt::Display for BqlCell<T> {
320 impl<T> BqlCell<T> {
332 pub const fn new(value: T) -> BqlCell<T> { in new() argument
351 pub fn set(&self, val: T) { in set() argument
370 pub fn replace(&self, val: T) -> T { in replace() argument
391 pub fn into_inner(self) -> T { in into_inner() argument
397 impl<T: Copy> BqlCell<T> {
411 pub fn get(&self) -> T { in get() argument
420 impl<T> BqlCell<T> {
434 pub const fn as_ptr(&self) -> *mut T { in as_ptr() argument
439 impl<T: Default> BqlCell<T> {
454 pub fn take(&self) -> T { in take() argument
469 pub struct BqlRefCell<T> {
473 value: UnsafeCell<T>,
509 impl<T> BqlRefCell<T> {
520 pub const fn new(value: T) -> BqlRefCell<T> { in new() argument
548 impl<T> BqlRefCell<T> {
596 pub fn borrow(&self) -> BqlRef<'_, T> { in borrow() argument
651 pub fn borrow_mut(&self) -> BqlRefMut<'_, T> { in borrow_mut() argument
685 pub const fn as_ptr(&self) -> *mut T { in as_ptr() argument
694 unsafe impl<T> Send for BqlRefCell<T> where T: Send {}
695 unsafe impl<T> Sync for BqlRefCell<T> {}
697 impl<T: Clone> Clone for BqlRefCell<T> {
703 fn clone(&self) -> BqlRefCell<T> { in clone() argument
717 impl<T: Default> Default for BqlRefCell<T> {
720 fn default() -> BqlRefCell<T> { in default()
725 impl<T: PartialEq> PartialEq for BqlRefCell<T> {
731 fn eq(&self, other: &BqlRefCell<T>) -> bool { in eq()
736 impl<T: Eq> Eq for BqlRefCell<T> {}
738 impl<T: PartialOrd> PartialOrd for BqlRefCell<T> {
744 fn partial_cmp(&self, other: &BqlRefCell<T>) -> Option<Ordering> { in partial_cmp()
749 impl<T: Ord> Ord for BqlRefCell<T> {
755 fn cmp(&self, other: &BqlRefCell<T>) -> Ordering { in cmp()
760 impl<T> From<T> for BqlRefCell<T> {
762 fn from(t: T) -> BqlRefCell<T> { in from() argument
818 pub struct BqlRef<'b, T: 'b> {
822 value: NonNull<T>,
826 impl<T> Deref for BqlRef<'_, T> {
827 type Target = T;
830 fn deref(&self) -> &T { in deref() argument
836 impl<'b, T> BqlRef<'b, T> {
848 pub fn clone(orig: &BqlRef<'b, T>) -> BqlRef<'b, T> { in clone() argument
856 impl<T: fmt::Debug> fmt::Debug for BqlRef<'_, T> {
862 impl<T: fmt::Display> fmt::Display for BqlRef<'_, T> {
900 pub struct BqlRefMut<'b, T: 'b> {
903 value: NonNull<T>,
906 marker: PhantomData<&'b mut T>,
909 impl<T> Deref for BqlRefMut<'_, T> {
910 type Target = T;
913 fn deref(&self) -> &T { in deref() argument
919 impl<T> DerefMut for BqlRefMut<'_, T> {
921 fn deref_mut(&mut self) -> &mut T { in deref_mut() argument
927 impl<T: fmt::Debug> fmt::Debug for BqlRefMut<'_, T> {
933 impl<T: fmt::Display> fmt::Display for BqlRefMut<'_, T> {
954 pub struct Opaque<T> {
955 value: UnsafeCell<MaybeUninit<T>>,
962 impl<T> Opaque<T> {
968 pub unsafe fn from_raw<'a>(ptr: *mut T) -> &'a Self { in from_raw()
1009 pub const fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() argument
1014 pub const fn as_ptr(&self) -> *const T { in as_ptr() argument
1025 pub const fn raw_get(slot: *mut Self) -> *mut T { in raw_get() argument
1032 impl<T> fmt::Debug for Opaque<T> {
1035 name += std::any::type_name::<T>(); in fmt()
1041 impl<T: Default> Opaque<T> {
1052 value: UnsafeCell::new(MaybeUninit::new(T::default())), in new()
1099 unsafe impl<T> Wrapper for Opaque<T> {
1100 type Wrapped = T;