valkyrie-errors 0.0.3

Error types for valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{ops::Deref, sync::Arc};

use crate::{types::ValkyrieMetaType, ValkyrieTypeLegacy, ValkyrieValue};

impl<T> ValkyrieTypeLegacy for Arc<T>
where
    T: ValkyrieTypeLegacy,
{
    #[track_caller]
    fn boxed(self) -> ValkyrieValue {
        panic!("Arc<T> can't be not boxed")
    }

    fn type_info(&self) -> Arc<ValkyrieMetaType> {
        self.as_ref().type_info()
    }
}