pub struct ShapeBuilder { /* private fields */ }Expand description
Builder for Shape
Implementations§
Source§impl ShapeBuilder
impl ShapeBuilder
Sourcepub const fn new() -> ShapeBuilder
pub const fn new() -> ShapeBuilder
Creates a new ShapeBuilder with all fields set to None.
Sourcepub const fn id(self, id: ConstTypeId) -> ShapeBuilder
pub const fn id(self, id: ConstTypeId) -> ShapeBuilder
Sets the id field of the ShapeBuilder.
Sourcepub const fn layout(self, layout: Layout) -> ShapeBuilder
pub const fn layout(self, layout: Layout) -> ShapeBuilder
Sets the layout field of the ShapeBuilder.
Sourcepub const fn vtable(self, vtable: &'static ValueVTable) -> ShapeBuilder
pub const fn vtable(self, vtable: &'static ValueVTable) -> ShapeBuilder
Sets the vtable field of the ShapeBuilder.
Sourcepub const fn def(self, def: Def) -> ShapeBuilder
pub const fn def(self, def: Def) -> ShapeBuilder
Sets the def field of the ShapeBuilder.
Sourcepub const fn type_params(
self,
type_params: &'static [TypeParam],
) -> ShapeBuilder
pub const fn type_params( self, type_params: &'static [TypeParam], ) -> ShapeBuilder
Sets the type_params field of the ShapeBuilder.
Sourcepub const fn doc(self, doc: &'static [&'static str]) -> ShapeBuilder
pub const fn doc(self, doc: &'static [&'static str]) -> ShapeBuilder
Sets the doc field of the ShapeBuilder.
Auto Trait Implementations§
impl Freeze for ShapeBuilder
impl RefUnwindSafe for ShapeBuilder
impl Send for ShapeBuilder
impl Sync for ShapeBuilder
impl Unpin for ShapeBuilder
impl UnwindSafe for ShapeBuilder
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