2
2
// from gir-files (https://github.com/gtk-rs/gir-files)
3
3
// DO NOT EDIT
4
4
5
- use crate :: ffi;
6
- #[ cfg( feature = "v2_84" ) ]
7
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
8
- use crate :: Icon ;
9
- #[ cfg( feature = "v2_84" ) ]
10
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
5
+ use crate :: { ffi, Icon } ;
11
6
use glib:: translate:: * ;
12
7
13
8
glib:: wrapper! {
@@ -22,156 +17,138 @@ glib::wrapper! {
22
17
}
23
18
24
19
impl UnixMountEntry {
25
- #[ cfg( feature = "v2_84" ) ]
26
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
27
20
#[ doc( alias = "g_unix_mount_entry_compare" ) ]
28
- fn compare ( & mut self , mount2 : & mut UnixMountEntry ) -> i32 {
21
+ fn compare ( & self , mount2 : & UnixMountEntry ) -> i32 {
29
22
unsafe {
30
- ffi:: g_unix_mount_entry_compare ( self . to_glib_none_mut ( ) . 0 , mount2. to_glib_none_mut ( ) . 0 )
23
+ ffi:: g_unix_mount_entry_compare (
24
+ mut_override ( self . to_glib_none ( ) . 0 ) ,
25
+ mut_override ( mount2. to_glib_none ( ) . 0 ) ,
26
+ )
31
27
}
32
28
}
33
29
34
- #[ cfg( feature = "v2_84" ) ]
35
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
36
30
#[ doc( alias = "g_unix_mount_entry_get_device_path" ) ]
37
31
#[ doc( alias = "get_device_path" ) ]
38
- pub fn device_path ( & mut self ) -> std:: path:: PathBuf {
32
+ pub fn device_path ( & self ) -> std:: path:: PathBuf {
39
33
unsafe {
40
- from_glib_none ( ffi:: g_unix_mount_entry_get_device_path (
41
- self . to_glib_none_mut ( ) . 0 ,
42
- ) )
34
+ from_glib_none ( ffi:: g_unix_mount_entry_get_device_path ( mut_override (
35
+ self . to_glib_none ( ) . 0 ,
36
+ ) ) )
43
37
}
44
38
}
45
39
46
- #[ cfg( feature = "v2_84" ) ]
47
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
48
40
#[ doc( alias = "g_unix_mount_entry_get_fs_type" ) ]
49
41
#[ doc( alias = "get_fs_type" ) ]
50
- pub fn fs_type ( & mut self ) -> glib:: GString {
42
+ pub fn fs_type ( & self ) -> glib:: GString {
51
43
unsafe {
52
- from_glib_none ( ffi:: g_unix_mount_entry_get_fs_type (
53
- self . to_glib_none_mut ( ) . 0 ,
54
- ) )
44
+ from_glib_none ( ffi:: g_unix_mount_entry_get_fs_type ( mut_override (
45
+ self . to_glib_none ( ) . 0 ,
46
+ ) ) )
55
47
}
56
48
}
57
49
58
- #[ cfg( feature = "v2_84" ) ]
59
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
60
50
#[ doc( alias = "g_unix_mount_entry_get_mount_path" ) ]
61
51
#[ doc( alias = "get_mount_path" ) ]
62
- pub fn mount_path ( & mut self ) -> std:: path:: PathBuf {
52
+ pub fn mount_path ( & self ) -> std:: path:: PathBuf {
63
53
unsafe {
64
- from_glib_none ( ffi:: g_unix_mount_entry_get_mount_path (
65
- self . to_glib_none_mut ( ) . 0 ,
66
- ) )
54
+ from_glib_none ( ffi:: g_unix_mount_entry_get_mount_path ( mut_override (
55
+ self . to_glib_none ( ) . 0 ,
56
+ ) ) )
67
57
}
68
58
}
69
59
70
- #[ cfg( feature = "v2_84 " ) ]
71
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84 " ) ) ) ]
60
+ #[ cfg( feature = "v2_58 " ) ]
61
+ #[ cfg_attr( docsrs, doc( cfg( feature = "v2_58 " ) ) ) ]
72
62
#[ doc( alias = "g_unix_mount_entry_get_options" ) ]
73
63
#[ doc( alias = "get_options" ) ]
74
- pub fn options ( & mut self ) -> Option < glib:: GString > {
64
+ pub fn options ( & self ) -> Option < glib:: GString > {
75
65
unsafe {
76
- from_glib_none ( ffi:: g_unix_mount_entry_get_options (
77
- self . to_glib_none_mut ( ) . 0 ,
78
- ) )
66
+ from_glib_none ( ffi:: g_unix_mount_entry_get_options ( mut_override (
67
+ self . to_glib_none ( ) . 0 ,
68
+ ) ) )
79
69
}
80
70
}
81
71
82
- #[ cfg( feature = "v2_84 " ) ]
83
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84 " ) ) ) ]
72
+ #[ cfg( feature = "v2_60 " ) ]
73
+ #[ cfg_attr( docsrs, doc( cfg( feature = "v2_60 " ) ) ) ]
84
74
#[ doc( alias = "g_unix_mount_entry_get_root_path" ) ]
85
75
#[ doc( alias = "get_root_path" ) ]
86
- pub fn root_path ( & mut self ) -> Option < glib:: GString > {
76
+ pub fn root_path ( & self ) -> Option < glib:: GString > {
87
77
unsafe {
88
- from_glib_none ( ffi:: g_unix_mount_entry_get_root_path (
89
- self . to_glib_none_mut ( ) . 0 ,
90
- ) )
78
+ from_glib_none ( ffi:: g_unix_mount_entry_get_root_path ( mut_override (
79
+ self . to_glib_none ( ) . 0 ,
80
+ ) ) )
91
81
}
92
82
}
93
83
94
- #[ cfg( feature = "v2_84" ) ]
95
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
96
84
#[ doc( alias = "g_unix_mount_entry_guess_can_eject" ) ]
97
- pub fn guess_can_eject ( & mut self ) -> bool {
85
+ pub fn guess_can_eject ( & self ) -> bool {
98
86
unsafe {
99
- from_glib ( ffi:: g_unix_mount_entry_guess_can_eject (
100
- self . to_glib_none_mut ( ) . 0 ,
101
- ) )
87
+ from_glib ( ffi:: g_unix_mount_entry_guess_can_eject ( mut_override (
88
+ self . to_glib_none ( ) . 0 ,
89
+ ) ) )
102
90
}
103
91
}
104
92
105
- #[ cfg( feature = "v2_84" ) ]
106
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
107
93
#[ doc( alias = "g_unix_mount_entry_guess_icon" ) ]
108
- pub fn guess_icon ( & mut self ) -> Icon {
94
+ pub fn guess_icon ( & self ) -> Icon {
109
95
unsafe {
110
- from_glib_full ( ffi:: g_unix_mount_entry_guess_icon (
111
- self . to_glib_none_mut ( ) . 0 ,
112
- ) )
96
+ from_glib_full ( ffi:: g_unix_mount_entry_guess_icon ( mut_override (
97
+ self . to_glib_none ( ) . 0 ,
98
+ ) ) )
113
99
}
114
100
}
115
101
116
- #[ cfg( feature = "v2_84" ) ]
117
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
118
102
#[ doc( alias = "g_unix_mount_entry_guess_name" ) ]
119
- pub fn guess_name ( & mut self ) -> glib:: GString {
103
+ pub fn guess_name ( & self ) -> glib:: GString {
120
104
unsafe {
121
- from_glib_full ( ffi:: g_unix_mount_entry_guess_name (
122
- self . to_glib_none_mut ( ) . 0 ,
123
- ) )
105
+ from_glib_full ( ffi:: g_unix_mount_entry_guess_name ( mut_override (
106
+ self . to_glib_none ( ) . 0 ,
107
+ ) ) )
124
108
}
125
109
}
126
110
127
- #[ cfg( feature = "v2_84" ) ]
128
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
129
111
#[ doc( alias = "g_unix_mount_entry_guess_should_display" ) ]
130
- pub fn guess_should_display ( & mut self ) -> bool {
112
+ pub fn guess_should_display ( & self ) -> bool {
131
113
unsafe {
132
- from_glib ( ffi:: g_unix_mount_entry_guess_should_display (
133
- self . to_glib_none_mut ( ) . 0 ,
134
- ) )
114
+ from_glib ( ffi:: g_unix_mount_entry_guess_should_display ( mut_override (
115
+ self . to_glib_none ( ) . 0 ,
116
+ ) ) )
135
117
}
136
118
}
137
119
138
- #[ cfg( feature = "v2_84" ) ]
139
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
140
120
#[ doc( alias = "g_unix_mount_entry_guess_symbolic_icon" ) ]
141
- pub fn guess_symbolic_icon ( & mut self ) -> Icon {
121
+ pub fn guess_symbolic_icon ( & self ) -> Icon {
142
122
unsafe {
143
- from_glib_full ( ffi:: g_unix_mount_entry_guess_symbolic_icon (
144
- self . to_glib_none_mut ( ) . 0 ,
145
- ) )
123
+ from_glib_full ( ffi:: g_unix_mount_entry_guess_symbolic_icon ( mut_override (
124
+ self . to_glib_none ( ) . 0 ,
125
+ ) ) )
146
126
}
147
127
}
148
128
149
- #[ cfg( feature = "v2_84" ) ]
150
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
151
129
#[ doc( alias = "g_unix_mount_entry_is_readonly" ) ]
152
- pub fn is_readonly ( & mut self ) -> bool {
130
+ pub fn is_readonly ( & self ) -> bool {
153
131
unsafe {
154
- from_glib ( ffi:: g_unix_mount_entry_is_readonly (
155
- self . to_glib_none_mut ( ) . 0 ,
156
- ) )
132
+ from_glib ( ffi:: g_unix_mount_entry_is_readonly ( mut_override (
133
+ self . to_glib_none ( ) . 0 ,
134
+ ) ) )
157
135
}
158
136
}
159
137
160
- #[ cfg( feature = "v2_84" ) ]
161
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
162
138
#[ doc( alias = "g_unix_mount_entry_is_system_internal" ) ]
163
- pub fn is_system_internal ( & mut self ) -> bool {
139
+ pub fn is_system_internal ( & self ) -> bool {
164
140
unsafe {
165
- from_glib ( ffi:: g_unix_mount_entry_is_system_internal (
166
- self . to_glib_none_mut ( ) . 0 ,
167
- ) )
141
+ from_glib ( ffi:: g_unix_mount_entry_is_system_internal ( mut_override (
142
+ self . to_glib_none ( ) . 0 ,
143
+ ) ) )
168
144
}
169
145
}
170
146
171
- #[ cfg( feature = "v2_84" ) ]
172
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
173
147
#[ doc( alias = "g_unix_mount_entry_at" ) ]
174
- pub fn at ( mount_path : impl AsRef < std:: path:: Path > ) -> ( Option < UnixMountEntry > , u64 ) {
148
+ #[ doc( alias = "at" ) ]
149
+ pub fn for_mount_path (
150
+ mount_path : impl AsRef < std:: path:: Path > ,
151
+ ) -> ( Option < UnixMountEntry > , u64 ) {
175
152
unsafe {
176
153
let mut time_read = std:: mem:: MaybeUninit :: uninit ( ) ;
177
154
let ret = from_glib_full ( ffi:: g_unix_mount_entry_at (
@@ -182,11 +159,9 @@ impl UnixMountEntry {
182
159
}
183
160
}
184
161
185
- #[ cfg( feature = "v2_84" ) ]
186
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
187
162
#[ doc( alias = "g_unix_mount_entry_for" ) ]
188
163
#[ doc( alias = "for" ) ]
189
- pub fn for_ ( file_path : impl AsRef < std:: path:: Path > ) -> ( Option < UnixMountEntry > , u64 ) {
164
+ pub fn for_file_path ( file_path : impl AsRef < std:: path:: Path > ) -> ( Option < UnixMountEntry > , u64 ) {
190
165
unsafe {
191
166
let mut time_read = std:: mem:: MaybeUninit :: uninit ( ) ;
192
167
let ret = from_glib_full ( ffi:: g_unix_mount_entry_for (
@@ -198,8 +173,6 @@ impl UnixMountEntry {
198
173
}
199
174
}
200
175
201
- #[ cfg( feature = "v2_84" ) ]
202
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
203
176
impl PartialEq for UnixMountEntry {
204
177
#[ inline]
205
178
fn eq ( & self , other : & Self ) -> bool {
@@ -209,8 +182,6 @@ impl PartialEq for UnixMountEntry {
209
182
210
183
impl Eq for UnixMountEntry { }
211
184
212
- #[ cfg( feature = "v2_84" ) ]
213
- #[ cfg_attr( docsrs, doc( cfg( feature = "v2_84" ) ) ) ]
214
185
impl PartialOrd for UnixMountEntry {
215
186
#[ inline]
216
187
fn partial_cmp ( & self , other : & Self ) -> Option < std:: cmp:: Ordering > {
0 commit comments