[−][src]Struct coolq_sdk_rust::api::Convert
用于转换类型
Methods
impl<F> Convert<F>
[src]
pub fn to<T: From<Convert<F>>>(self) -> T
[src]
use coolq_sdk_rust::api::Convert; let ok = Convert::from(1).to::<bool>();
pub fn try_to<T: TryFrom<Convert<F>>>(self) -> Result<T, T::Error>
[src]
Trait Implementations
impl<T: Debug> Debug for Convert<T>
[src]
impl<'_> From<&'_ MessageSegment> for Convert<*const c_char>
[src]
fn from(value: &MessageSegment) -> Self
[src]
impl<'_> From<&'_ str> for Convert<*const c_char>
[src]
impl From<()> for Convert<i32>
[src]
impl From<*const i8> for Convert<String>
[src]
impl From<*const i8> for Convert<*const c_char>
[src]
impl From<CQLogLevel> for Convert<i32>
[src]
fn from(value: CQLogLevel) -> Self
[src]
impl From<Convert<*const i8>> for *const c_char
[src]
impl From<Convert<*const i8>> for String
[src]
impl From<Convert<i32>> for i32
[src]
impl From<Convert<i32>> for bool
[src]
impl From<Convert<i64>> for i64
[src]
impl From<String> for Convert<String>
[src]
impl From<String> for Convert<*const c_char>
[src]
impl From<bool> for Convert<bool>
[src]
impl From<bool> for Convert<i32>
[src]
impl From<i32> for Convert<i32>
[src]
impl From<i64> for Convert<i64>
[src]
impl<T: ToString> ToString for Convert<T>
[src]
impl TryFrom<Convert<*const i8>> for GroupMember
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for Group
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for Vec<Group>
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for Vec<GroupMember>
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for User
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for File
[src]
type Error = IoError
The type returned in the event of a conversion error.
fn try_from(value: Convert<*const c_char>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Convert<*const i8>> for Vec<FriendInfo>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Convert<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Convert<T> where
T: Send,
T: Send,
impl<T> Sync for Convert<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Convert<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Convert<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,