pub struct FieldDecl {
pub name: String,
pub ty: Located<SurfaceExpr>,
pub default: Option<Located<SurfaceExpr>>,
}Expand description
Field declaration for structures and classes.
Fields§
§name: StringField name
ty: Located<SurfaceExpr>Field type
default: Option<Located<SurfaceExpr>>Default value (optional)
Trait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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