pub struct TypeDec { /* private fields */ }Expand description
A type declaration.
Trait Implementations§
Source§impl Statement for TypeDec
impl Statement for TypeDec
Source§fn write(&self, b: &mut CodeBuffer, level: usize)
fn write(&self, b: &mut CodeBuffer, level: usize)
Writes the code to the buffer
b at the indent level.Source§impl WithAccess for TypeDec
impl WithAccess for TypeDec
Source§fn set_access<A>(&mut self, access: A)
fn set_access<A>(&mut self, access: A)
Sets the
access level.Source§fn with_access<A>(self, access: A) -> Self
fn with_access<A>(self, access: A) -> Self
Sets the
access level.Source§fn write_access(&self, b: &mut CodeBuffer)
fn write_access(&self, b: &mut CodeBuffer)
Writes the access level.
Source§impl WithComments for TypeDec
impl WithComments for TypeDec
Source§fn add_comment<S>(&mut self, comment: S)
fn add_comment<S>(&mut self, comment: S)
Adds the
comment line.Source§fn with_comment<S>(self, comment: S) -> Self
fn with_comment<S>(self, comment: S) -> Self
Adds the
comment line.Source§fn write_comments(
&self,
comment_type: CommentType,
b: &mut CodeBuffer,
level: usize,
)
fn write_comments( &self, comment_type: CommentType, b: &mut CodeBuffer, level: usize, )
Writes the comment lines.
Source§impl WithName for TypeDec
impl WithName for TypeDec
Source§fn write_name(&self, b: &mut CodeBuffer)
fn write_name(&self, b: &mut CodeBuffer)
Writes the name.
Source§impl WithRustType for TypeDec
impl WithRustType for TypeDec
Source§fn write_rust_type(&self, b: &mut CodeBuffer)
fn write_rust_type(&self, b: &mut CodeBuffer)
Writes the Rust type.
Auto Trait Implementations§
impl Freeze for TypeDec
impl RefUnwindSafe for TypeDec
impl Send for TypeDec
impl Sync for TypeDec
impl Unpin for TypeDec
impl UnwindSafe for TypeDec
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