pub struct Syntax { /* private fields */ }Expand description
A registered property’s syntax: None for the universal *, or the
grammar it stands for.
Implementations§
Source§impl Syntax
impl Syntax
Sourcepub fn parse(src: &str) -> Option<Syntax>
pub fn parse(src: &str) -> Option<Syntax>
Parses a syntax string by §5.1, or None if it isn’t one.
Sourcepub fn is_universal(&self) -> bool
pub fn is_universal(&self) -> bool
Whether it’s *.
Sourcepub fn parse_value<'a>(
&self,
values: &[ComponentValue<'a>],
) -> Option<Vec<Component<'a>>>
pub fn parse_value<'a>( &self, values: &[ComponentValue<'a>], ) -> Option<Vec<Component<'a>>>
values typed by the syntax, or None if they don’t match it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Syntax
impl Freeze for Syntax
impl Move for Syntax
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnsafeUnpin for Syntax
impl UnwindSafe for Syntax
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