File tree Expand file tree Collapse file tree 3 files changed +72
-36
lines changed Expand file tree Collapse file tree 3 files changed +72
-36
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,39 @@ impl GStr {
289
289
}
290
290
}
291
291
pub const NONE : Option < & ' static GStr > = None ;
292
+
293
+ // rustdoc-stripper-ignore-next
294
+ /// Interns the string and returns the canonical representation.
295
+ #[ inline]
296
+ #[ doc( alias = "g_intern_string" ) ]
297
+ pub fn intern ( & self ) -> & ' static GStr {
298
+ unsafe {
299
+ let s = ffi:: g_intern_string ( self . to_glib_none ( ) . 0 ) ;
300
+ GStr :: from_ptr ( s)
301
+ }
302
+ }
303
+
304
+ // rustdoc-stripper-ignore-next
305
+ /// Interns the `'static` string and returns the canonical representation.
306
+ #[ inline]
307
+ #[ doc( alias = "g_intern_static_string" ) ]
308
+ pub fn intern_static ( & ' static self ) -> & ' static GStr {
309
+ unsafe {
310
+ let s = ffi:: g_intern_static_string ( self . to_glib_none ( ) . 0 ) ;
311
+ GStr :: from_ptr ( s)
312
+ }
313
+ }
314
+
315
+ // rustdoc-stripper-ignore-next
316
+ /// Interns the string and returns the canonical representation.
317
+ #[ inline]
318
+ #[ doc( alias = "g_intern_string" ) ]
319
+ pub fn intern_from_str ( s : impl AsRef < str > ) -> & ' static GStr {
320
+ unsafe {
321
+ let s = ffi:: g_intern_string ( s. as_ref ( ) . to_glib_none ( ) . 0 ) ;
322
+ GStr :: from_ptr ( s)
323
+ }
324
+ }
292
325
}
293
326
294
327
// rustdoc-stripper-ignore-next
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ impl ops::MulAssign<Matrix> for Matrix {
246
246
impl ops:: Mul < Vec4 > for Matrix {
247
247
type Output = Vec4 ;
248
248
249
+ // rustdoc-stripper-ignore-next
249
250
/// Transforms this `Vec4` using the provided matrix.
250
251
/// See [Matrix::transform_vec4].
251
252
fn mul ( self , rhs : Vec4 ) -> Self :: Output {
@@ -256,6 +257,7 @@ impl ops::Mul<Vec4> for Matrix {
256
257
impl ops:: Mul < Vec3 > for Matrix {
257
258
type Output = Vec3 ;
258
259
260
+ // rustdoc-stripper-ignore-next
259
261
/// Transforms this `Vec3` using the provided matrix.
260
262
/// See [Matrix::transform_vec3].
261
263
fn mul ( self , rhs : Vec3 ) -> Self :: Output {
@@ -274,6 +276,7 @@ impl ops::Mul<Point> for Matrix {
274
276
impl ops:: Mul < Point3D > for Matrix {
275
277
type Output = Point3D ;
276
278
279
+ // rustdoc-stripper-ignore-next
277
280
/// Transforms this point using the provided matrix.
278
281
/// See [Matrix::transform_point3d].
279
282
fn mul ( self , rhs : Point3D ) -> Self :: Output {
You can’t perform that action at this time.
0 commit comments