Remove _Private.
This commit is contained in:
parent
94c2f64473
commit
9d900a6722
@ -34,9 +34,9 @@ mod private {
|
||||
use crate::fn_native::SendSync;
|
||||
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 {}
|
||||
|
||||
impl<T: Any + Clone + SendSync> Sealed for T {}
|
||||
@ -810,8 +810,3 @@ impl From<Box<FnPtr>> for Dynamic {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user