pub struct SemanticModel {
pub structs: BTreeMap<String, SemanticStruct>,
pub globals: BTreeMap<String, SemanticGlobal>,
pub functions: BTreeMap<String, SemanticFunction>,
}Expand description
Semantic facts collected from one script.
Fields§
§structs: BTreeMap<String, SemanticStruct>Resolved structures indexed by name.
globals: BTreeMap<String, SemanticGlobal>Resolved global variables indexed by name.
functions: BTreeMap<String, SemanticFunction>Resolved functions indexed by name.
Trait Implementations§
Source§impl Clone for SemanticModel
impl Clone for SemanticModel
Source§fn clone(&self) -> SemanticModel
fn clone(&self) -> SemanticModel
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 SemanticModel
impl Debug for SemanticModel
Source§impl<'de> Deserialize<'de> for SemanticModel
impl<'de> Deserialize<'de> for SemanticModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SemanticModel
impl PartialEq for SemanticModel
Source§impl Serialize for SemanticModel
impl Serialize for SemanticModel
impl StructuralPartialEq for SemanticModel
Auto Trait Implementations§
impl Freeze for SemanticModel
impl RefUnwindSafe for SemanticModel
impl Send for SemanticModel
impl Sync for SemanticModel
impl Unpin for SemanticModel
impl UnsafeUnpin for SemanticModel
impl UnwindSafe for SemanticModel
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