pub struct FieldQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> FieldQuery<'a>
impl<'a> FieldQuery<'a>
pub fn attribute(&self, key: &str) -> Result<AttributeQuery<'_>, Error>
pub fn attributes(&self) -> Result<Vec<Attribute>, Error>
pub fn items(&self) -> Result<&[Item], Error>
pub fn missing_error(&self) -> Error
pub fn optional_value(&self) -> Result<Option<String>, Error>
pub fn required_value<T: FromStr>(&self) -> Result<T, Error>
pub fn snippet(&self) -> Result<String, Error>
pub fn snippet_with_options( &self, printer: &dyn Printer, gutter: bool, ) -> Result<String, Error>
Auto Trait Implementations§
impl<'a> Freeze for FieldQuery<'a>
impl<'a> !RefUnwindSafe for FieldQuery<'a>
impl<'a> !Send for FieldQuery<'a>
impl<'a> !Sync for FieldQuery<'a>
impl<'a> Unpin for FieldQuery<'a>
impl<'a> !UnwindSafe for FieldQuery<'a>
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