pub struct ModelReflection {
pub hir: HirReflection,
/* private fields */
}Expand description
Loaded template + HIR reflection (front-end load).
Fields§
§hir: HirReflectionImplementations§
Source§impl ModelReflection
impl ModelReflection
Sourcepub fn load_hir_template(
device: Device,
hir: HirModule,
options: &CompileOptions,
) -> Result<Self, LowerError>
pub fn load_hir_template( device: Device, hir: HirModule, options: &CompileOptions, ) -> Result<Self, LowerError>
Compile symbolic template on device and retain for specialize/layout.
pub fn has_template(&self) -> bool
pub fn mir_summary(&self) -> Option<MirReflection>
Sourcepub fn template_layout(&self) -> Option<BindingManifest>
pub fn template_layout(&self) -> Option<BindingManifest>
Template layout (symbolic dims may be unresolved in arena sizes).
Sourcepub fn layout_for_component(
&self,
component: &ModelComponent,
device: Device,
options: &CompileOptions,
) -> Option<BindingManifest>
pub fn layout_for_component( &self, component: &ModelComponent, device: Device, options: &CompileOptions, ) -> Option<BindingManifest>
Specialized layout for a ModelComponent (getTypeLayout after specialize).
pub fn manifest_diff_for_component( &self, component: &ModelComponent, device: Device, options: &CompileOptions, ) -> Option<ManifestDiff>
Auto Trait Implementations§
impl Freeze for ModelReflection
impl RefUnwindSafe for ModelReflection
impl Send for ModelReflection
impl Sync for ModelReflection
impl Unpin for ModelReflection
impl UnsafeUnpin for ModelReflection
impl UnwindSafe for ModelReflection
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more