Add content method to plain::Paragraph
This commit is contained in:
parent
fe95b26d53
commit
d643bd5ba2
1 changed files with 5 additions and 0 deletions
|
|
@ -143,4 +143,9 @@ impl<P: Paragraph> Plain<P> {
|
|||
pub fn raw(&self) -> &P {
|
||||
&self.raw
|
||||
}
|
||||
|
||||
/// Returns the current content of the plain [`Paragraph`].
|
||||
pub fn content(&self) -> &str {
|
||||
&self.content
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue