Lines Matching full:default
115 //! - For types that implement [`Default`], the [`take`](BqlCell::take) method
116 //! replaces the current interior value with [`Default::default()`] and
207 //! types, since by default (unlike [`BqlCell`] and [`BqlRefCell`]
270 impl<T: Default> Default for BqlCell<T> {
271 /// Creates a `BqlCell<T>`, with the `Default` value for T.
273 fn default() -> BqlCell<T> { in default() method
274 BqlCell::new(Default::default()) in default()
439 impl<T: Default> BqlCell<T> {
440 /// Takes the value of the cell, leaving `Default::default()` in its place.
455 self.replace(Default::default()) in take()
717 impl<T: Default> Default for BqlRefCell<T> {
718 /// Creates a `BqlRefCell<T>`, with the `Default` value for T.
720 fn default() -> BqlRefCell<T> { in default() method
721 BqlRefCell::new(Default::default()) in default()
1041 impl<T: Default> Opaque<T> {
1042 /// Creates a new opaque object with default contents.
1052 value: UnsafeCell::new(MaybeUninit::new(T::default())), in new()