Struct rsfbclient_core::charset::Charset [−][src]
Charset definition. Used to encode/decode the strings.
Fields
on_firebird: &'static str
Charset used in firebird
on_rust: Option<EncodingRef>
Equivalent charset used on rust code
Implementations
impl Charset
[src]
pub fn decode<'a, B>(&self, bytes: B) -> Result<String, FbError> where
B: Into<Cow<'a, [u8]>>,
[src]
B: Into<Cow<'a, [u8]>>,
Decode the bytes using the current charset
pub fn encode<'a, S>(&self, s: S) -> Result<Cow<'a, [u8]>, FbError> where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
Trait Implementations
impl Clone for Charset
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Charset
[src]
impl FromStr for Charset
[src]
type Err = FbError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Charset> for Charset
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl !UnwindSafe for Charset
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,