pub struct GameProfileStringTooLong {
pub max_code_units: usize,
pub actual_code_units: usize,
}Expand description
Error returned when a game-profile string exceeds its field limit.
Fields§
§max_code_units: usizeMaximum permitted number of UTF-16 code units.
actual_code_units: usizeNumber of UTF-16 code units in the rejected value.
Trait Implementations§
Source§impl Clone for GameProfileStringTooLong
impl Clone for GameProfileStringTooLong
Source§fn clone(&self) -> GameProfileStringTooLong
fn clone(&self) -> GameProfileStringTooLong
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GameProfileStringTooLong
Source§impl Debug for GameProfileStringTooLong
impl Debug for GameProfileStringTooLong
Source§impl Display for GameProfileStringTooLong
impl Display for GameProfileStringTooLong
impl Eq for GameProfileStringTooLong
Source§impl Error for GameProfileStringTooLong
impl Error for GameProfileStringTooLong
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for GameProfileStringTooLong
impl Hash for GameProfileStringTooLong
Source§impl PartialEq for GameProfileStringTooLong
impl PartialEq for GameProfileStringTooLong
impl StructuralPartialEq for GameProfileStringTooLong
Auto Trait Implementations§
impl Freeze for GameProfileStringTooLong
impl RefUnwindSafe for GameProfileStringTooLong
impl Send for GameProfileStringTooLong
impl Sync for GameProfileStringTooLong
impl Unpin for GameProfileStringTooLong
impl UnsafeUnpin for GameProfileStringTooLong
impl UnwindSafe for GameProfileStringTooLong
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