pub enum FStringPartMut<'a> {
Literal(&'a mut StringLiteral),
FString(&'a mut FString),
}Expand description
A mutably borrowed string literal or f-string part of an FStringValue.
Variants§
Literal(&'a mut StringLiteral)
FString(&'a mut FString)
Trait Implementations§
Source§impl<'a> From<&'a mut FStringPart> for FStringPartMut<'a>
impl<'a> From<&'a mut FStringPart> for FStringPartMut<'a>
Source§fn from(part: &'a mut FStringPart) -> Self
fn from(part: &'a mut FStringPart) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !UnwindSafe for FStringPartMut<'a>
impl<'a> Freeze for FStringPartMut<'a>
impl<'a> RefUnwindSafe for FStringPartMut<'a>
impl<'a> Send for FStringPartMut<'a>
impl<'a> Sync for FStringPartMut<'a>
impl<'a> Unpin for FStringPartMut<'a>
impl<'a> UnsafeUnpin for FStringPartMut<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more