pub struct EmissionProfile {
pub newline_after_open: bool,
pub newline_before_close: bool,
}Expand description
Whitespace layout a dialect uses when emitting a call.
Consumed by the GBNF grammar generator and by
DialectSpec::render_call, so enforcement and tests emit exactly what
the model was trained to produce.
Fields§
§newline_after_open: boolWhether a newline separates the open marker from the body.
newline_before_close: boolWhether a newline separates the body from the close marker.
Trait Implementations§
Source§impl Clone for EmissionProfile
impl Clone for EmissionProfile
Source§fn clone(&self) -> EmissionProfile
fn clone(&self) -> EmissionProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmissionProfile
impl Debug for EmissionProfile
Source§impl Default for EmissionProfile
impl Default for EmissionProfile
Source§impl<'de> Deserialize<'de> for EmissionProfile
impl<'de> Deserialize<'de> for EmissionProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EmissionProfile
impl PartialEq for EmissionProfile
Source§fn eq(&self, other: &EmissionProfile) -> bool
fn eq(&self, other: &EmissionProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmissionProfile
impl Serialize for EmissionProfile
impl Copy for EmissionProfile
impl Eq for EmissionProfile
impl StructuralPartialEq for EmissionProfile
Auto Trait Implementations§
impl Freeze for EmissionProfile
impl RefUnwindSafe for EmissionProfile
impl Send for EmissionProfile
impl Sync for EmissionProfile
impl Unpin for EmissionProfile
impl UnsafeUnpin for EmissionProfile
impl UnwindSafe for EmissionProfile
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