pub struct CsharpXmlParser;Expand description
Parser for C# XML documentation files.
Implementations§
Source§impl CsharpXmlParser
impl CsharpXmlParser
Sourcepub fn parse(
xml: &str,
options: &CsharpParseOptions,
) -> Result<CsharpParseOutput, CsharpParseError>
pub fn parse( xml: &str, options: &CsharpParseOptions, ) -> Result<CsharpParseOutput, CsharpParseError>
Parses C# XML documentation into symbols and doc blocks.
§Errors
Returns CsharpParseError if the XML is invalid or cannot be parsed.
Sourcepub async fn parse_async(
xml: String,
options: CsharpParseOptions,
) -> Result<CsharpParseOutput, CsharpParseError>
pub async fn parse_async( xml: String, options: CsharpParseOptions, ) -> Result<CsharpParseOutput, CsharpParseError>
Parses XML asynchronously using a blocking task.
§Errors
Returns CsharpParseError if parsing fails or the task panics.
Sourcepub async fn parse_file(
path: impl AsRef<Path>,
options: CsharpParseOptions,
) -> Result<CsharpParseOutput, CsharpParseError>
pub async fn parse_file( path: impl AsRef<Path>, options: CsharpParseOptions, ) -> Result<CsharpParseOutput, CsharpParseError>
Parses XML from a file path asynchronously.
§Errors
Returns CsharpParseError if the file cannot be read or the XML cannot be parsed.
Auto Trait Implementations§
impl Freeze for CsharpXmlParser
impl RefUnwindSafe for CsharpXmlParser
impl Send for CsharpXmlParser
impl Sync for CsharpXmlParser
impl Unpin for CsharpXmlParser
impl UnwindSafe for CsharpXmlParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more