pub struct LuaExtSourceBuffer { /* private fields */ }Expand description
A text buffer for building LuaExt output source code.
Implementations§
Source§impl LuaExtSourceBuffer
impl LuaExtSourceBuffer
pub fn new() -> Self
pub fn with_indent(self, indent: impl Into<String>) -> Self
pub fn push_line(&mut self, line: &str)
pub fn push_raw(&mut self, s: &str)
pub fn indent(&mut self)
pub fn dedent(&mut self)
pub fn as_str(&self) -> &str
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn line_count(&self) -> usize
pub fn into_string(self) -> String
pub fn reset(&mut self)
Trait Implementations§
Source§impl Debug for LuaExtSourceBuffer
impl Debug for LuaExtSourceBuffer
Source§impl Default for LuaExtSourceBuffer
impl Default for LuaExtSourceBuffer
Source§fn default() -> LuaExtSourceBuffer
fn default() -> LuaExtSourceBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaExtSourceBuffer
impl RefUnwindSafe for LuaExtSourceBuffer
impl Send for LuaExtSourceBuffer
impl Sync for LuaExtSourceBuffer
impl Unpin for LuaExtSourceBuffer
impl UnsafeUnpin for LuaExtSourceBuffer
impl UnwindSafe for LuaExtSourceBuffer
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