pub struct TextDecl {
pub version: Option<String>,
pub encoding: String,
}
Fields§
§version: Option<String>
§encoding: String
Trait Implementations§
Source§impl<'a> Parse<'a> for TextDecl
impl<'a> Parse<'a> for TextDecl
type Args = ()
type Output = Result<(&'a str, TextDecl), Err<Error>>
fn parse(input: &'a str, _args: Self::Args) -> Self::Output
fn is_char(c: char) -> bool
fn parse_char(input: &str) -> IResult<&str, char>
fn is_whitespace(c: char) -> bool
fn parse_multispace1(input: &str) -> IResult<&str, ()>
fn parse_multispace0(input: &str) -> IResult<&str, ()>
fn is_name_start_char(c: char) -> bool
fn is_name_char(c: char) -> bool
fn parse_name_char(input: &str) -> IResult<&str, char>
fn parse_name_start_char(input: &str) -> IResult<&str, char>
fn parse_nmtoken(input: &str) -> IResult<&str, String>
fn parse_nmtokens(input: &str) -> IResult<&str, Vec<String>>
fn parse_name(input: &str) -> IResult<&str, Name>
fn parse_names(input: &str) -> IResult<&str, Vec<Name>>
fn parse_eq(input: &str) -> IResult<&str, ()>
fn capture_span<O, F>( f: F, ) -> Box<dyn FnMut(&'a str) -> IResult<&'a str, (&'a str, O)> + 'a>
impl Eq for TextDecl
impl StructuralPartialEq for TextDecl
Auto Trait Implementations§
impl Freeze for TextDecl
impl RefUnwindSafe for TextDecl
impl Send for TextDecl
impl Sync for TextDecl
impl Unpin for TextDecl
impl UnwindSafe for TextDecl
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