bacnet-objects 0.13.0

BACnet object model: traits, database, and standard object types
Documentation
//! Concrete storage access without imposing 'static on borrowed read views.
/// Permit constructed only inside bacnet-objects. No external mutable downcast.
#[doc(hidden)]
pub struct ObjectStorageAccess(pub(crate) ());

/// Blanket implementation seals concrete reflection against adapter overrides.
#[doc(hidden)]
pub trait StoredObject {
    /// Only owned database objects can use this crate-authorized reflection.
    fn as_stored_any_mut(&mut self, access: ObjectStorageAccess) -> &mut dyn std::any::Any
    where
        Self: 'static;
}
impl<T> StoredObject for T {
    fn as_stored_any_mut(&mut self, _: ObjectStorageAccess) -> &mut dyn std::any::Any
    where
        Self: 'static,
    {
        self
    }
}