@@ -63,103 +63,75 @@ impl fmt::UpperHex for Uuid {
6363
6464/// Format a [`Uuid`] as a hyphenated string, like
6565/// `67e55044-10b1-426f-9247-bb680e5fe0c8`.
66- ///
67- /// [`Uuid`]: ../struct.Uuid.html
6866#[ derive( Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
6967#[ repr( transparent) ]
7068pub struct Hyphenated ( Uuid ) ;
7169
7270/// Format a [`Uuid`] as a simple string, like
7371/// `67e5504410b1426f9247bb680e5fe0c8`.
74- ///
75- /// [`Uuid`]: ../struct.Uuid.html
7672#[ derive( Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
7773#[ repr( transparent) ]
7874pub struct Simple ( Uuid ) ;
7975
8076/// Format a [`Uuid`] as a URN string, like
8177/// `urn:uuid:67e55044-10b1-426f-9247-bb680e5fe0c8`.
82- ///
83- /// [`Uuid`]: ../struct.Uuid.html
8478#[ derive( Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
8579#[ repr( transparent) ]
8680pub struct Urn ( Uuid ) ;
8781
8882/// Format a [`Uuid`] as a braced hyphenated string, like
8983/// `{67e55044-10b1-426f-9247-bb680e5fe0c8}`.
90- ///
91- /// [`Uuid`]: ../struct.Uuid.html
9284#[ derive( Clone , Copy , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
9385#[ repr( transparent) ]
9486pub struct Braced ( Uuid ) ;
9587
9688impl Uuid {
9789 /// Get a [`Hyphenated`] formatter.
98- ///
99- /// [`Hyphenated`]: adapter/struct.Hyphenated.html
10090 #[ inline]
10191 pub const fn hyphenated ( self ) -> Hyphenated {
10292 Hyphenated ( self )
10393 }
10494
10595 /// Get a borrowed [`Hyphenated`] formatter.
106- ///
107- /// [`Hyphenated`]: adapter/struct.Hyphenated.html
10896 #[ inline]
10997 pub fn as_hyphenated ( & self ) -> & Hyphenated {
11098 // SAFETY: `Uuid` and `Hyphenated` have the same ABI
11199 unsafe { & * ( self as * const Uuid as * const Hyphenated ) }
112100 }
113101
114102 /// Get a [`Simple`] formatter.
115- ///
116- /// [`Simple`]: adapter/struct.Simple.html
117103 #[ inline]
118104 pub const fn simple ( self ) -> Simple {
119105 Simple ( self )
120106 }
121107
122108 /// Get a borrowed [`Simple`] formatter.
123- ///
124- /// [`Simple`]: adapter/struct.Simple.html
125109 #[ inline]
126110 pub fn as_simple ( & self ) -> & Simple {
127111 // SAFETY: `Uuid` and `Simple` have the same ABI
128112 unsafe { & * ( self as * const Uuid as * const Simple ) }
129113 }
130114
131115 /// Get a [`Urn`] formatter.
132- ///
133- /// [`Uuid`]: ../struct.Uuid.html
134- /// [`Urn`]: adapter/struct.Urn.html
135116 #[ inline]
136117 pub const fn urn ( self ) -> Urn {
137118 Urn ( self )
138119 }
139120
140121 /// Get a borrowed [`Urn`] formatter.
141- ///
142- /// [`Uuid`]: ../struct.Uuid.html
143- /// [`Urn`]: adapter/struct.Urn.html
144122 #[ inline]
145123 pub fn as_urn ( & self ) -> & Urn {
146124 // SAFETY: `Uuid` and `Urn` have the same ABI
147125 unsafe { & * ( self as * const Uuid as * const Urn ) }
148126 }
149127
150128 /// Get a [`Braced`] formatter.
151- ///
152- /// [`Uuid`]: ../struct.Uuid.html
153- /// [`Braced`]: adapter/struct.Braced.html
154129 #[ inline]
155130 pub const fn braced ( self ) -> Braced {
156131 Braced ( self )
157132 }
158133
159134 /// Get a borrowed [`Braced`] formatter.
160- ///
161- /// [`Uuid`]: ../struct.Uuid.html
162- /// [`Braced`]: adapter/struct.Braced.html
163135 #[ inline]
164136 pub fn as_braced ( & self ) -> & Braced {
165137 // SAFETY: `Uuid` and `Braced` have the same ABI
0 commit comments