Add #[inline] marker to OnceCell/LazyCell/OnceLock/LazyLock
This commit is contained in:
parent
71ec1457ee
commit
b9558a15dc
4 changed files with 37 additions and 2 deletions
|
@ -51,6 +51,7 @@ impl<T, F> LazyCell<T, F> {
|
||||||
///
|
///
|
||||||
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
/// assert_eq!(&*lazy, "HELLO, WORLD!");
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub const fn new(init: F) -> LazyCell<T, F> {
|
pub const fn new(init: F) -> LazyCell<T, F> {
|
||||||
LazyCell { cell: OnceCell::new(), init: Cell::new(Some(init)) }
|
LazyCell { cell: OnceCell::new(), init: Cell::new(Some(init)) }
|
||||||
|
@ -75,6 +76,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
|
||||||
/// assert_eq!(LazyCell::force(&lazy), &92);
|
/// assert_eq!(LazyCell::force(&lazy), &92);
|
||||||
/// assert_eq!(&*lazy, &92);
|
/// assert_eq!(&*lazy, &92);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn force(this: &LazyCell<T, F>) -> &T {
|
pub fn force(this: &LazyCell<T, F>) -> &T {
|
||||||
this.cell.get_or_init(|| match this.init.take() {
|
this.cell.get_or_init(|| match this.init.take() {
|
||||||
|
@ -87,6 +89,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T, F: FnOnce() -> T> Deref for LazyCell<T, F> {
|
impl<T, F: FnOnce() -> T> Deref for LazyCell<T, F> {
|
||||||
type Target = T;
|
type Target = T;
|
||||||
|
#[inline]
|
||||||
fn deref(&self) -> &T {
|
fn deref(&self) -> &T {
|
||||||
LazyCell::force(self)
|
LazyCell::force(self)
|
||||||
}
|
}
|
||||||
|
@ -95,6 +98,7 @@ impl<T, F: FnOnce() -> T> Deref for LazyCell<T, F> {
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: Default> Default for LazyCell<T> {
|
impl<T: Default> Default for LazyCell<T> {
|
||||||
/// Creates a new lazy value using `Default` as the initializing function.
|
/// Creates a new lazy value using `Default` as the initializing function.
|
||||||
|
#[inline]
|
||||||
fn default() -> LazyCell<T> {
|
fn default() -> LazyCell<T> {
|
||||||
LazyCell::new(T::default)
|
LazyCell::new(T::default)
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,9 @@ pub struct OnceCell<T> {
|
||||||
|
|
||||||
impl<T> OnceCell<T> {
|
impl<T> OnceCell<T> {
|
||||||
/// Creates a new empty cell.
|
/// Creates a new empty cell.
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub const fn new() -> OnceCell<T> {
|
pub const fn new() -> OnceCell<T> {
|
||||||
OnceCell { inner: UnsafeCell::new(None) }
|
OnceCell { inner: UnsafeCell::new(None) }
|
||||||
}
|
}
|
||||||
|
@ -46,6 +47,7 @@ impl<T> OnceCell<T> {
|
||||||
/// Gets the reference to the underlying value.
|
/// Gets the reference to the underlying value.
|
||||||
///
|
///
|
||||||
/// Returns `None` if the cell is empty.
|
/// Returns `None` if the cell is empty.
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get(&self) -> Option<&T> {
|
pub fn get(&self) -> Option<&T> {
|
||||||
// SAFETY: Safe due to `inner`'s invariant
|
// SAFETY: Safe due to `inner`'s invariant
|
||||||
|
@ -55,6 +57,7 @@ impl<T> OnceCell<T> {
|
||||||
/// Gets the mutable reference to the underlying value.
|
/// Gets the mutable reference to the underlying value.
|
||||||
///
|
///
|
||||||
/// Returns `None` if the cell is empty.
|
/// Returns `None` if the cell is empty.
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get_mut(&mut self) -> Option<&mut T> {
|
pub fn get_mut(&mut self) -> Option<&mut T> {
|
||||||
self.inner.get_mut().as_mut()
|
self.inner.get_mut().as_mut()
|
||||||
|
@ -82,6 +85,7 @@ impl<T> OnceCell<T> {
|
||||||
///
|
///
|
||||||
/// assert!(cell.get().is_some());
|
/// assert!(cell.get().is_some());
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn set(&self, value: T) -> Result<(), T> {
|
pub fn set(&self, value: T) -> Result<(), T> {
|
||||||
// SAFETY: Safe because we cannot have overlapping mutable borrows
|
// SAFETY: Safe because we cannot have overlapping mutable borrows
|
||||||
|
@ -123,6 +127,7 @@ impl<T> OnceCell<T> {
|
||||||
/// let value = cell.get_or_init(|| unreachable!());
|
/// let value = cell.get_or_init(|| unreachable!());
|
||||||
/// assert_eq!(value, &92);
|
/// assert_eq!(value, &92);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get_or_init<F>(&self, f: F) -> &T
|
pub fn get_or_init<F>(&self, f: F) -> &T
|
||||||
where
|
where
|
||||||
|
@ -205,6 +210,7 @@ impl<T> OnceCell<T> {
|
||||||
/// cell.set("hello".to_string()).unwrap();
|
/// cell.set("hello".to_string()).unwrap();
|
||||||
/// assert_eq!(cell.into_inner(), Some("hello".to_string()));
|
/// assert_eq!(cell.into_inner(), Some("hello".to_string()));
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn into_inner(self) -> Option<T> {
|
pub fn into_inner(self) -> Option<T> {
|
||||||
// Because `into_inner` takes `self` by value, the compiler statically verifies
|
// Because `into_inner` takes `self` by value, the compiler statically verifies
|
||||||
|
@ -233,6 +239,7 @@ impl<T> OnceCell<T> {
|
||||||
/// assert_eq!(cell.take(), Some("hello".to_string()));
|
/// assert_eq!(cell.take(), Some("hello".to_string()));
|
||||||
/// assert_eq!(cell.get(), None);
|
/// assert_eq!(cell.get(), None);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn take(&mut self) -> Option<T> {
|
pub fn take(&mut self) -> Option<T> {
|
||||||
mem::take(self).into_inner()
|
mem::take(self).into_inner()
|
||||||
|
@ -241,6 +248,7 @@ impl<T> OnceCell<T> {
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T> Default for OnceCell<T> {
|
impl<T> Default for OnceCell<T> {
|
||||||
|
#[inline]
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self::new()
|
Self::new()
|
||||||
}
|
}
|
||||||
|
@ -258,6 +266,7 @@ impl<T: fmt::Debug> fmt::Debug for OnceCell<T> {
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: Clone> Clone for OnceCell<T> {
|
impl<T: Clone> Clone for OnceCell<T> {
|
||||||
|
#[inline]
|
||||||
fn clone(&self) -> OnceCell<T> {
|
fn clone(&self) -> OnceCell<T> {
|
||||||
let res = OnceCell::new();
|
let res = OnceCell::new();
|
||||||
if let Some(value) = self.get() {
|
if let Some(value) = self.get() {
|
||||||
|
@ -272,6 +281,7 @@ impl<T: Clone> Clone for OnceCell<T> {
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: PartialEq> PartialEq for OnceCell<T> {
|
impl<T: PartialEq> PartialEq for OnceCell<T> {
|
||||||
|
#[inline]
|
||||||
fn eq(&self, other: &Self) -> bool {
|
fn eq(&self, other: &Self) -> bool {
|
||||||
self.get() == other.get()
|
self.get() == other.get()
|
||||||
}
|
}
|
||||||
|
@ -283,6 +293,7 @@ impl<T: Eq> Eq for OnceCell<T> {}
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T> const From<T> for OnceCell<T> {
|
impl<T> const From<T> for OnceCell<T> {
|
||||||
/// Creates a new `OnceCell<T>` which already contains the given `value`.
|
/// Creates a new `OnceCell<T>` which already contains the given `value`.
|
||||||
|
#[inline]
|
||||||
fn from(value: T) -> Self {
|
fn from(value: T) -> Self {
|
||||||
OnceCell { inner: UnsafeCell::new(Some(value)) }
|
OnceCell { inner: UnsafeCell::new(Some(value)) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ pub struct LazyLock<T, F = fn() -> T> {
|
||||||
impl<T, F> LazyLock<T, F> {
|
impl<T, F> LazyLock<T, F> {
|
||||||
/// Creates a new lazy value with the given initializing
|
/// Creates a new lazy value with the given initializing
|
||||||
/// function.
|
/// function.
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub const fn new(f: F) -> LazyLock<T, F> {
|
pub const fn new(f: F) -> LazyLock<T, F> {
|
||||||
LazyLock { cell: OnceLock::new(), init: Cell::new(Some(f)) }
|
LazyLock { cell: OnceLock::new(), init: Cell::new(Some(f)) }
|
||||||
|
@ -73,6 +74,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
|
||||||
/// assert_eq!(LazyLock::force(&lazy), &92);
|
/// assert_eq!(LazyLock::force(&lazy), &92);
|
||||||
/// assert_eq!(&*lazy, &92);
|
/// assert_eq!(&*lazy, &92);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn force(this: &LazyLock<T, F>) -> &T {
|
pub fn force(this: &LazyLock<T, F>) -> &T {
|
||||||
this.cell.get_or_init(|| match this.init.take() {
|
this.cell.get_or_init(|| match this.init.take() {
|
||||||
|
@ -85,6 +87,8 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T, F: FnOnce() -> T> Deref for LazyLock<T, F> {
|
impl<T, F: FnOnce() -> T> Deref for LazyLock<T, F> {
|
||||||
type Target = T;
|
type Target = T;
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn deref(&self) -> &T {
|
fn deref(&self) -> &T {
|
||||||
LazyLock::force(self)
|
LazyLock::force(self)
|
||||||
}
|
}
|
||||||
|
@ -93,6 +97,7 @@ impl<T, F: FnOnce() -> T> Deref for LazyLock<T, F> {
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: Default> Default for LazyLock<T> {
|
impl<T: Default> Default for LazyLock<T> {
|
||||||
/// Creates a new lazy value using `Default` as the initializing function.
|
/// Creates a new lazy value using `Default` as the initializing function.
|
||||||
|
#[inline]
|
||||||
fn default() -> LazyLock<T> {
|
fn default() -> LazyLock<T> {
|
||||||
LazyLock::new(T::default)
|
LazyLock::new(T::default)
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,8 +61,9 @@ pub struct OnceLock<T> {
|
||||||
|
|
||||||
impl<T> OnceLock<T> {
|
impl<T> OnceLock<T> {
|
||||||
/// Creates a new empty cell.
|
/// Creates a new empty cell.
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub const fn new() -> OnceLock<T> {
|
pub const fn new() -> OnceLock<T> {
|
||||||
OnceLock {
|
OnceLock {
|
||||||
once: Once::new(),
|
once: Once::new(),
|
||||||
|
@ -75,6 +76,7 @@ impl<T> OnceLock<T> {
|
||||||
///
|
///
|
||||||
/// Returns `None` if the cell is empty, or being initialized. This
|
/// Returns `None` if the cell is empty, or being initialized. This
|
||||||
/// method never blocks.
|
/// method never blocks.
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get(&self) -> Option<&T> {
|
pub fn get(&self) -> Option<&T> {
|
||||||
if self.is_initialized() {
|
if self.is_initialized() {
|
||||||
|
@ -88,6 +90,7 @@ impl<T> OnceLock<T> {
|
||||||
/// Gets the mutable reference to the underlying value.
|
/// Gets the mutable reference to the underlying value.
|
||||||
///
|
///
|
||||||
/// Returns `None` if the cell is empty. This method never blocks.
|
/// Returns `None` if the cell is empty. This method never blocks.
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get_mut(&mut self) -> Option<&mut T> {
|
pub fn get_mut(&mut self) -> Option<&mut T> {
|
||||||
if self.is_initialized() {
|
if self.is_initialized() {
|
||||||
|
@ -125,6 +128,7 @@ impl<T> OnceLock<T> {
|
||||||
/// assert_eq!(CELL.get(), Some(&92));
|
/// assert_eq!(CELL.get(), Some(&92));
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn set(&self, value: T) -> Result<(), T> {
|
pub fn set(&self, value: T) -> Result<(), T> {
|
||||||
let mut value = Some(value);
|
let mut value = Some(value);
|
||||||
|
@ -164,6 +168,7 @@ impl<T> OnceLock<T> {
|
||||||
/// let value = cell.get_or_init(|| unreachable!());
|
/// let value = cell.get_or_init(|| unreachable!());
|
||||||
/// assert_eq!(value, &92);
|
/// assert_eq!(value, &92);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get_or_init<F>(&self, f: F) -> &T
|
pub fn get_or_init<F>(&self, f: F) -> &T
|
||||||
where
|
where
|
||||||
|
@ -203,6 +208,7 @@ impl<T> OnceLock<T> {
|
||||||
/// assert_eq!(value, Ok(&92));
|
/// assert_eq!(value, Ok(&92));
|
||||||
/// assert_eq!(cell.get(), Some(&92))
|
/// assert_eq!(cell.get(), Some(&92))
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
|
pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
|
||||||
where
|
where
|
||||||
|
@ -241,6 +247,7 @@ impl<T> OnceLock<T> {
|
||||||
/// cell.set("hello".to_string()).unwrap();
|
/// cell.set("hello".to_string()).unwrap();
|
||||||
/// assert_eq!(cell.into_inner(), Some("hello".to_string()));
|
/// assert_eq!(cell.into_inner(), Some("hello".to_string()));
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn into_inner(mut self) -> Option<T> {
|
pub fn into_inner(mut self) -> Option<T> {
|
||||||
self.take()
|
self.take()
|
||||||
|
@ -267,6 +274,7 @@ impl<T> OnceLock<T> {
|
||||||
/// assert_eq!(cell.take(), Some("hello".to_string()));
|
/// assert_eq!(cell.take(), Some("hello".to_string()));
|
||||||
/// assert_eq!(cell.get(), None);
|
/// assert_eq!(cell.get(), None);
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
pub fn take(&mut self) -> Option<T> {
|
pub fn take(&mut self) -> Option<T> {
|
||||||
if self.is_initialized() {
|
if self.is_initialized() {
|
||||||
|
@ -315,6 +323,7 @@ impl<T> OnceLock<T> {
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// The value must be initialized
|
/// The value must be initialized
|
||||||
|
#[inline]
|
||||||
unsafe fn get_unchecked(&self) -> &T {
|
unsafe fn get_unchecked(&self) -> &T {
|
||||||
debug_assert!(self.is_initialized());
|
debug_assert!(self.is_initialized());
|
||||||
(&*self.value.get()).assume_init_ref()
|
(&*self.value.get()).assume_init_ref()
|
||||||
|
@ -323,6 +332,7 @@ impl<T> OnceLock<T> {
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// The value must be initialized
|
/// The value must be initialized
|
||||||
|
#[inline]
|
||||||
unsafe fn get_unchecked_mut(&mut self) -> &mut T {
|
unsafe fn get_unchecked_mut(&mut self) -> &mut T {
|
||||||
debug_assert!(self.is_initialized());
|
debug_assert!(self.is_initialized());
|
||||||
(&mut *self.value.get()).assume_init_mut()
|
(&mut *self.value.get()).assume_init_mut()
|
||||||
|
@ -360,6 +370,7 @@ impl<T> const Default for OnceLock<T> {
|
||||||
/// assert_eq!(OnceLock::<()>::new(), OnceLock::default());
|
/// assert_eq!(OnceLock::<()>::new(), OnceLock::default());
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
fn default() -> OnceLock<T> {
|
fn default() -> OnceLock<T> {
|
||||||
OnceLock::new()
|
OnceLock::new()
|
||||||
}
|
}
|
||||||
|
@ -377,6 +388,7 @@ impl<T: fmt::Debug> fmt::Debug for OnceLock<T> {
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: Clone> Clone for OnceLock<T> {
|
impl<T: Clone> Clone for OnceLock<T> {
|
||||||
|
#[inline]
|
||||||
fn clone(&self) -> OnceLock<T> {
|
fn clone(&self) -> OnceLock<T> {
|
||||||
let cell = Self::new();
|
let cell = Self::new();
|
||||||
if let Some(value) = self.get() {
|
if let Some(value) = self.get() {
|
||||||
|
@ -408,6 +420,7 @@ impl<T> From<T> for OnceLock<T> {
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[inline]
|
||||||
fn from(value: T) -> Self {
|
fn from(value: T) -> Self {
|
||||||
let cell = Self::new();
|
let cell = Self::new();
|
||||||
match cell.set(value) {
|
match cell.set(value) {
|
||||||
|
@ -419,6 +432,7 @@ impl<T> From<T> for OnceLock<T> {
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
impl<T: PartialEq> PartialEq for OnceLock<T> {
|
impl<T: PartialEq> PartialEq for OnceLock<T> {
|
||||||
|
#[inline]
|
||||||
fn eq(&self, other: &OnceLock<T>) -> bool {
|
fn eq(&self, other: &OnceLock<T>) -> bool {
|
||||||
self.get() == other.get()
|
self.get() == other.get()
|
||||||
}
|
}
|
||||||
|
@ -429,6 +443,7 @@ impl<T: Eq> Eq for OnceLock<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "once_cell", issue = "74465")]
|
#[unstable(feature = "once_cell", issue = "74465")]
|
||||||
unsafe impl<#[may_dangle] T> Drop for OnceLock<T> {
|
unsafe impl<#[may_dangle] T> Drop for OnceLock<T> {
|
||||||
|
#[inline]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if self.is_initialized() {
|
if self.is_initialized() {
|
||||||
// SAFETY: The cell is initialized and being dropped, so it can't
|
// SAFETY: The cell is initialized and being dropped, so it can't
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue