pub enum FStringPart {
Literal(String),
Interpolation(FStringInterpolation),
}Expand description
View of one piece of an FString. Mirrors crate::FStringPart
at the rowan side.
Variants§
Literal(String)
Interpolation(FStringInterpolation)
Trait Implementations§
Source§impl Clone for FStringPart
impl Clone for FStringPart
Source§fn clone(&self) -> FStringPart
fn clone(&self) -> FStringPart
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 FStringPart
impl Debug for FStringPart
impl Eq for FStringPart
Source§impl Hash for FStringPart
impl Hash for FStringPart
Source§impl PartialEq for FStringPart
impl PartialEq for FStringPart
Source§fn eq(&self, other: &FStringPart) -> bool
fn eq(&self, other: &FStringPart) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FStringPart
Auto Trait Implementations§
impl !RefUnwindSafe for FStringPart
impl !Send for FStringPart
impl !Sync for FStringPart
impl !UnwindSafe for FStringPart
impl Freeze for FStringPart
impl Unpin for FStringPart
impl UnsafeUnpin for FStringPart
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