pub struct StubSlice {
pub classes: Vec<ClassStorage>,
pub interfaces: Vec<InterfaceStorage>,
pub traits: Vec<TraitStorage>,
pub enums: Vec<EnumStorage>,
pub functions: Vec<FunctionStorage>,
pub constants: Vec<(Arc<str>, Union)>,
pub file: Option<Arc<str>>,
pub global_vars: Vec<(Arc<str>, Union)>,
}Expand description
A snapshot of all PHP definitions contributed by a single stub file set.
Produced by mir-stubs-gen at code-generation time and deserialized at
runtime to inject definitions into the Codebase.
Fields§
§classes: Vec<ClassStorage>§interfaces: Vec<InterfaceStorage>§traits: Vec<TraitStorage>§enums: Vec<EnumStorage>§functions: Vec<FunctionStorage>§constants: Vec<(Arc<str>, Union)>§file: Option<Arc<str>>Source file this slice was collected from. None for bundled stub slices
that were pre-computed and are not tied to a specific on-disk file.
global_vars: Vec<(Arc<str>, Union)>Types of @var-annotated global variables collected from this file.
Populated by DefinitionCollector; merged into Codebase::global_vars
by crate::Codebase::inject_stub_slice when file is Some.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StubSlice
impl<'de> Deserialize<'de> for StubSlice
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
Auto Trait Implementations§
impl Freeze for StubSlice
impl RefUnwindSafe for StubSlice
impl Send for StubSlice
impl Sync for StubSlice
impl Unpin for StubSlice
impl UnsafeUnpin for StubSlice
impl UnwindSafe for StubSlice
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