pub struct ShapeBuilder { /* private fields */ }Expand description
Builder for Shape
Implementations§
Source§impl ShapeBuilder
impl ShapeBuilder
Sourcepub const fn id(self, id: ConstTypeId) -> Self
pub const fn id(self, id: ConstTypeId) -> Self
Sets the id field of the ShapeBuilder.
Sourcepub const fn vtable(self, vtable: ValueVTable) -> Self
pub const fn vtable(self, vtable: ValueVTable) -> Self
Sets the vtable field of the ShapeBuilder.
Sourcepub const fn set_unsized(self) -> Self
pub const fn set_unsized(self) -> Self
Sets the type as unsized
Sourcepub const fn type_identifier(self, type_identifier: &'static str) -> Self
pub const fn type_identifier(self, type_identifier: &'static str) -> Self
Sets the type_identifier field of the ShapeBuilder.
Sourcepub const fn type_params(self, type_params: &'static [TypeParam]) -> Self
pub const fn type_params(self, type_params: &'static [TypeParam]) -> Self
Sets the type_params field of the ShapeBuilder.
Sourcepub const fn doc(self, doc: &'static [&'static str]) -> Self
pub const fn doc(self, doc: &'static [&'static str]) -> Self
Sets the doc field of the ShapeBuilder.
Sourcepub const fn attributes(self, attributes: &'static [ShapeAttribute]) -> Self
pub const fn attributes(self, attributes: &'static [ShapeAttribute]) -> Self
Sets the attributes field of the ShapeBuilder.
Sourcepub const fn type_tag(self, type_tag: &'static str) -> Self
pub const fn type_tag(self, type_tag: &'static str) -> Self
Sets the type_tag field of the ShapeBuilder.
Sourcepub const fn inner(self, inner_shape: &'static Shape) -> Self
pub const fn inner(self, inner_shape: &'static Shape) -> Self
Sets the inner field of the ShapeBuilder.
This indicates that this shape is a transparent wrapper for another shape, like a newtype or smart pointer, and should be treated as such for serialization and deserialization.
The inner_shape parameter should be the static shape of the inner type.
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