[−][src]Struct krill::commons::util::xml::Attributes
A convenient wrapper for XML tag attributes
Implementations
impl Attributes
[src]
pub fn take_opt(&mut self, name: &str) -> Option<String>
[src]
Takes an optional attribute by name
pub fn take_opt_hex(&mut self, name: &str) -> Option<Bytes>
[src]
Takes an optional hexencoded attribute and converts it to Bytes
pub fn take_req(&mut self, name: &str) -> Result<String, AttributesError>
[src]
Takes a required attribute by name
pub fn take_req_hex(&mut self, name: &str) -> Result<Bytes, AttributesError>
[src]
Takes a required hexencoded attribute and converts it to Bytes
pub fn exhausted(&self) -> Result<(), AttributesError>
[src]
Verifies that there are no more attributes
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,