Remove _Private.

This commit is contained in:
Stephen Chung 2020-07-25 16:09:13 +08:00
parent 94c2f64473
commit 9d900a6722

View File

@ -34,9 +34,9 @@ mod private {
use crate::fn_native::SendSync; use crate::fn_native::SendSync;
use crate::stdlib::any::Any; use crate::stdlib::any::Any;
/// A sealed trait that prevents other crates from implementing [Variant]. /// A sealed trait that prevents other crates from implementing [`Variant`].
/// ///
/// [Variant]: super::Variant /// [`Variant`]: super::Variant
pub trait Sealed {} pub trait Sealed {}
impl<T: Any + Clone + SendSync> Sealed for T {} impl<T: Any + Clone + SendSync> Sealed for T {}
@ -810,8 +810,3 @@ impl From<Box<FnPtr>> for Dynamic {
Self(Union::FnPtr(value)) Self(Union::FnPtr(value))
} }
} }
/// Private type which ensures that `rhai::Any` and `rhai::AnyExt` can only
/// be implemented by this crate.
#[doc(hidden)]
pub struct _Private;