pub struct Introspection { /* private fields */ }Implementations§
Source§impl Introspection
impl Introspection
pub fn new<T: Introspectable + ?Sized>() -> Self
pub fn from_dyn(ty: DynIntrospectable) -> Self
pub fn lexical_id(&self) -> LexicalId
pub fn type_id(&self) -> TypeId
pub fn layout(&self) -> &Layout
pub fn references(&self) -> &BTreeMap<LexicalId, TypeId>
pub fn resolve(&self, lexical_id: LexicalId) -> Option<TypeId>
pub fn iter_references( &self, ) -> impl ExactSizeIterator<Item = (LexicalId, TypeId)> + '_
pub fn as_built_in_layout(&self) -> Option<BuiltInType>
pub fn as_struct_layout(&self) -> Option<&Struct>
pub fn as_enum_layout(&self) -> Option<&Enum>
pub fn as_service_layout(&self) -> Option<&Service>
Trait Implementations§
Source§impl Clone for Introspection
impl Clone for Introspection
Source§fn clone(&self) -> Introspection
fn clone(&self) -> Introspection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Introspection
impl Debug for Introspection
Source§impl Deserialize for Introspection
impl Deserialize for Introspection
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Serialize for Introspection
impl Serialize for Introspection
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
Auto Trait Implementations§
impl Freeze for Introspection
impl RefUnwindSafe for Introspection
impl Send for Introspection
impl Sync for Introspection
impl Unpin for Introspection
impl UnwindSafe for Introspection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more