Implement Display for Chunk
This commit is contained in:
parent
7c5ea599c8
commit
e801ee468b
@ -357,6 +357,12 @@ impl DerefMut for Chunk {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl fmt::Display for Chunk {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
write!(f, "{}", self.content)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T: Into<BString>> From<T> for Chunk {
|
impl<T: Into<BString>> From<T> for Chunk {
|
||||||
fn from(value: T) -> Self {
|
fn from(value: T) -> Self {
|
||||||
Self::new(value)
|
Self::new(value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user