@@ -17,15 +17,13 @@ use std::{borrow::Cow, collections::HashMap, ops::Range};
1717/// want to access the value using one of the [`unescaped_value`] and [`unescape_and_decode_value`]
1818/// functions.
1919///
20- /// [`unescaped_value`]: #method. unescaped_value
21- /// [`unescape_and_decode_value`]: #method. unescape_and_decode_value
20+ /// [`unescaped_value`]: Self:: unescaped_value
21+ /// [`unescape_and_decode_value`]: Self:: unescape_and_decode_value
2222#[ derive( Clone , PartialEq ) ]
2323pub struct Attribute < ' a > {
2424 /// The key to uniquely define the attribute.
2525 ///
2626 /// If [`Attributes::with_checks`] is turned off, the key might not be unique.
27- ///
28- /// [`Attributes::with_checks`]: struct.Attributes.html#method.with_checks
2927 pub key : QName < ' a > ,
3028 /// The raw value of the attribute.
3129 pub value : Cow < ' a , [ u8 ] > ,
@@ -39,7 +37,7 @@ impl<'a> Attribute<'a> {
3937 ///
4038 /// This will allocate if the value contains any escape sequences.
4139 ///
42- /// See also [`unescaped_value_with_custom_entities()`](#method. unescaped_value_with_custom_entities)
40+ /// See also [`unescaped_value_with_custom_entities()`](Self:: unescaped_value_with_custom_entities)
4341 pub fn unescaped_value ( & self ) -> XmlResult < Cow < [ u8 ] > > {
4442 self . make_unescaped_value ( None )
4543 }
@@ -52,7 +50,7 @@ impl<'a> Attribute<'a> {
5250 ///
5351 /// This will allocate if the value contains any escape sequences.
5452 ///
55- /// See also [`unescaped_value()`](#method. unescaped_value)
53+ /// See also [`unescaped_value()`](Self:: unescaped_value)
5654 ///
5755 /// # Pre-condition
5856 ///
@@ -76,11 +74,11 @@ impl<'a> Attribute<'a> {
7674 /// This allocates a `String` in all cases. For performance reasons it might be a better idea to
7775 /// instead use one of:
7876 ///
79- /// * [`Reader::decode()`], as it only allocates when the decoding can't be performed otherwise.
77+ /// * [`Reader::decoder(). decode()`], as it only allocates when the decoding can't be performed otherwise.
8078 /// * [`unescaped_value()`], as it doesn't allocate when no escape sequences are used.
8179 ///
82- /// [`unescaped_value()`]: #method. unescaped_value
83- /// [`Reader::decode()`]: ../../ reader/struct.Reader.html#method. decode
80+ /// [`unescaped_value()`]: Self:: unescaped_value
81+ /// [`Reader::decoder(). decode()`]: crate:: reader::Decoder:: decode
8482 pub fn unescape_and_decode_value < B > ( & self , reader : & Reader < B > ) -> XmlResult < String > {
8583 self . do_unescape_and_decode_value ( reader, None )
8684 }
@@ -90,11 +88,11 @@ impl<'a> Attribute<'a> {
9088 /// This allocates a `String` in all cases. For performance reasons it might be a better idea to
9189 /// instead use one of:
9290 ///
93- /// * [`Reader::decode()`], as it only allocates when the decoding can't be performed otherwise.
91+ /// * [`Reader::decoder(). decode()`], as it only allocates when the decoding can't be performed otherwise.
9492 /// * [`unescaped_value_with_custom_entities()`], as it doesn't allocate when no escape sequences are used.
9593 ///
96- /// [`unescaped_value_with_custom_entities()`]: #method. unescaped_value_with_custom_entities
97- /// [`Reader::decode()`]: ../../ reader/struct.Reader.html#method. decode
94+ /// [`unescaped_value_with_custom_entities()`]: Self:: unescaped_value_with_custom_entities
95+ /// [`Reader::decoder(). decode()`]: crate:: reader::Decoder:: decode
9896 ///
9997 /// # Pre-condition
10098 ///
@@ -189,7 +187,7 @@ impl<'a> From<Attr<&'a [u8]>> for Attribute<'a> {
189187/// Yields `Result<Attribute>`. An `Err` will be yielded if an attribute is malformed or duplicated.
190188/// The duplicate check can be turned off by calling [`with_checks(false)`].
191189///
192- /// [`with_checks(false)`]: #method. with_checks
190+ /// [`with_checks(false)`]: Self:: with_checks
193191#[ derive( Clone , Debug ) ]
194192pub struct Attributes < ' a > {
195193 /// slice of `Element` corresponding to attributes
0 commit comments