pub struct ConstInit { /* private fields */ }Expand description
A const initialization statement.
Trait Implementations§
Source§impl Statement for ConstInit
impl Statement for ConstInit
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 ConstInit
impl WithAccess for ConstInit
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 ConstInit
impl WithComments for ConstInit
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.
Auto Trait Implementations§
impl Freeze for ConstInit
impl !RefUnwindSafe for ConstInit
impl !Send for ConstInit
impl !Sync for ConstInit
impl Unpin for ConstInit
impl !UnwindSafe for ConstInit
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