pub struct PhoneSoftKeyPosition(/* private fields */);Expand description
A phone soft-key slot. -1 is the documented application/settings slot;
physical rows use positions 1 through 16. Device-profile code may impose a
smaller maximum without weakening the shared XML model.
Implementations§
Source§impl PhoneSoftKeyPosition
impl PhoneSoftKeyPosition
Sourcepub const APPLICATION: Self
pub const APPLICATION: Self
Sentinel slot used for the application or settings action.
Sourcepub fn new(value: i16) -> Result<Self, PhoneXmlError>
pub fn new(value: i16) -> Result<Self, PhoneXmlError>
Accepts the application sentinel or a physical slot in 1..=16.
Sourcepub const fn get(self) -> i8
pub const fn get(self) -> i8
Returns the signed wire value, including -1 for Self::APPLICATION.
Trait Implementations§
Source§impl Clone for PhoneSoftKeyPosition
impl Clone for PhoneSoftKeyPosition
Source§fn clone(&self) -> PhoneSoftKeyPosition
fn clone(&self) -> PhoneSoftKeyPosition
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 PhoneSoftKeyPosition
Source§impl Debug for PhoneSoftKeyPosition
impl Debug for PhoneSoftKeyPosition
Source§impl<'de> Deserialize<'de> for PhoneSoftKeyPosition
impl<'de> Deserialize<'de> for PhoneSoftKeyPosition
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PhoneSoftKeyPosition
Source§impl Hash for PhoneSoftKeyPosition
impl Hash for PhoneSoftKeyPosition
Source§impl Ord for PhoneSoftKeyPosition
impl Ord for PhoneSoftKeyPosition
Source§fn cmp(&self, other: &PhoneSoftKeyPosition) -> Ordering
fn cmp(&self, other: &PhoneSoftKeyPosition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PhoneSoftKeyPosition
impl PartialEq for PhoneSoftKeyPosition
Source§impl PartialOrd for PhoneSoftKeyPosition
impl PartialOrd for PhoneSoftKeyPosition
Source§impl Serialize for PhoneSoftKeyPosition
impl Serialize for PhoneSoftKeyPosition
impl StructuralPartialEq for PhoneSoftKeyPosition
Auto Trait Implementations§
impl Freeze for PhoneSoftKeyPosition
impl RefUnwindSafe for PhoneSoftKeyPosition
impl Send for PhoneSoftKeyPosition
impl Sync for PhoneSoftKeyPosition
impl Unpin for PhoneSoftKeyPosition
impl UnsafeUnpin for PhoneSoftKeyPosition
impl UnwindSafe for PhoneSoftKeyPosition
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