diff options
author | Rory Dudley | 2024-05-20 14:47:00 -0600 |
---|---|---|
committer | Rory Dudley | 2024-05-20 14:47:00 -0600 |
commit | c91b512ef3a463a5e7e7884d232f11501207ceb3 (patch) | |
tree | 993793a76b9a4a200999116ae44acda7403fad37 /src/poem/recite.rs | |
parent | e06d529c3a9624f7d5db2b0054f88af6062757cc (diff) | |
download | dwarvish-c91b512ef3a463a5e7e7884d232f11501207ceb3.tar.gz |
Added doc comments for Poem::recite()
Added documentation comments for the Poem::recite() function, detailing
what the purpose of the function is, as well as what operations it
performs.
Diffstat (limited to 'src/poem/recite.rs')
-rw-r--r-- | src/poem/recite.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/poem/recite.rs b/src/poem/recite.rs index 2311352..ffa97bf 100644 --- a/src/poem/recite.rs +++ b/src/poem/recite.rs @@ -15,6 +15,14 @@ pub trait Reciteable { } impl Reciteable for Poem { + /// Recite a [Poem] + /// + /// Runs the commands specified in all verses for a given [Poem]. See + /// [crate::poem::Verse::incant] for more details on how processes are + /// forked. In addition to running each [crate::poem::Verse], + /// [Poem::recite] also checks for the presence of environment variables, + /// as well as sub-poems, before running the [crate::poem::Verse]'s + /// [Stanza]. fn recite(&self, env: &mut Environment) -> Result<Vec<u8>, io::Error> { // Variable for storing the output of a piped verse let mut out: Vec<u8> = Vec::new(); |