pub struct StructWithExpr {
pub source: Arc<Expr>,
pub replace: Arc<[(ArcStr, Expr)]>,
}Fields§
§source: Arc<Expr>§replace: Arc<[(ArcStr, Expr)]>Trait Implementations§
Source§impl Clone for StructWithExpr
impl Clone for StructWithExpr
Source§fn clone(&self) -> StructWithExpr
fn clone(&self) -> StructWithExpr
Returns a duplicate of the value. Read more
1.0.0 · 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 StructWithExpr
impl Debug for StructWithExpr
Source§impl Display for StructWithExpr
impl Display for StructWithExpr
Source§impl PartialEq for StructWithExpr
impl PartialEq for StructWithExpr
Source§impl PartialOrd for StructWithExpr
impl PartialOrd for StructWithExpr
Source§impl PrettyDisplay for StructWithExpr
impl PrettyDisplay for StructWithExpr
Source§fn fmt_pretty_inner(&self, buf: &mut PrettyBuf) -> Result
fn fmt_pretty_inner(&self, buf: &mut PrettyBuf) -> Result
Do the actual pretty print. This should not be called directly, it will
be called by fmt_pretty when we know it can’t fit on a single line.
Source§fn fmt_pretty(&self, buf: &mut PrettyBuf) -> Result
fn fmt_pretty(&self, buf: &mut PrettyBuf) -> Result
This is the user facing fmt method, it will first try to format the
expression on a single line, and if that is impossible it will call the
pretty printer.
impl StructuralPartialEq for StructWithExpr
Auto Trait Implementations§
impl Freeze for StructWithExpr
impl !RefUnwindSafe for StructWithExpr
impl Send for StructWithExpr
impl Sync for StructWithExpr
impl Unpin for StructWithExpr
impl !UnwindSafe for StructWithExpr
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more