Struct debris_backends::datapack::json_formatter::JsonTextWriter
source · pub(super) struct JsonTextWriter {
buf: String,
pending: String,
}
Fields§
§buf: String
§pending: String
Implementations§
source§impl JsonTextWriter
impl JsonTextWriter
pub fn write( &mut self, component: &JsonFormatComponent, scoreboards: &mut ScoreboardContext, functions: &mut FunctionContext )
pub fn into_string(self) -> String
fn flush_pending(&mut self)
fn write_str(&mut self, value: &str)
fn write_score(&mut self, _: &ScoreboardPlayer)
Trait Implementations§
source§impl Debug for JsonTextWriter
impl Debug for JsonTextWriter
Auto Trait Implementations§
impl RefUnwindSafe for JsonTextWriter
impl Send for JsonTextWriter
impl Sync for JsonTextWriter
impl Unpin for JsonTextWriter
impl UnwindSafe for JsonTextWriter
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