Enum libgir::analysis::conversion_type::ConversionType
source · pub enum ConversionType {
Direct,
Scalar,
Option,
Result {
ok_type: Arc<str>,
err_type: Arc<str>,
},
Pointer,
Borrow,
Unknown,
}
Variants§
Direct
Coded without conversion.
Scalar
Coded with from_glib.
Option
Type implementing TryFromGlib<Error=GlibNoneError>.
Result
Type implementing TryFromGlibOk
variant if ok_type
is
None
.
Pointer
Coded with from_glib_xxx.
Borrow
Unknown
Implementations§
Trait Implementations§
source§impl Clone for ConversionType
impl Clone for ConversionType
source§fn clone(&self) -> ConversionType
fn clone(&self) -> ConversionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConversionType
impl Debug for ConversionType
source§impl Default for ConversionType
impl Default for ConversionType
source§fn default() -> ConversionType
fn default() -> ConversionType
Returns the “default value” for a type. Read more
source§impl PartialEq for ConversionType
impl PartialEq for ConversionType
impl Eq for ConversionType
impl StructuralPartialEq for ConversionType
Auto Trait Implementations§
impl Freeze for ConversionType
impl RefUnwindSafe for ConversionType
impl Send for ConversionType
impl Sync for ConversionType
impl Unpin for ConversionType
impl UnwindSafe for ConversionType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.