[−][src]Function genco::lang::csharp::block_comment
pub fn block_comment<T>(comment: T) -> BlockComment<T> where
T: IntoIterator,
T::Item: Into<ItemStr>,
Format a doc comment where each line is preceeded by ///
.
Examples
use genco::prelude::*; use std::iter; let toks = quote! { #(csharp::block_comment(vec!["Foo"])) #(csharp::block_comment(iter::empty::<&str>())) #(csharp::block_comment(vec!["Bar"])) }; assert_eq!( vec![ "/// Foo", "/// Bar", ], toks.to_file_vec()? );