use crate::{Capacity, Clear, Push, Truncate, WithCapacity};
use core::{
fmt::Write,
ops::{Deref, DerefMut},
};
#[cfg_attr(feature = "alloc", doc = "```rust")]
#[cfg_attr(not(feature = "alloc"), doc = "```ignore")]
pub trait DynString:
AsRef<str>
+ Capacity
+ Clear
+ Default
+ Deref<Target = str>
+ DerefMut
+ crate::Extend<char, Error = crate::Error>
+ Push<char, Error = crate::Error>
+ for<'str> Push<&'str str, Error = crate::Error>
+ Truncate<Input = usize>
+ WithCapacity<Input = usize>
+ Write
{
}
impl<T> DynString for T where
T: AsRef<str>
+ Capacity
+ Clear
+ Default
+ Deref<Target = str>
+ DerefMut
+ crate::Extend<char, Error = crate::Error>
+ Push<char, Error = crate::Error>
+ for<'str> Push<&'str str, Error = crate::Error>
+ Truncate<Input = usize>
+ WithCapacity<Input = usize>
+ Write
{
}