pub struct SurfaceId(/* private fields */);Implementations§
Source§impl SurfaceId
impl SurfaceId
Sourcepub fn new(value: impl Into<String>) -> Result<SurfaceId, IdentifierError>
pub fn new(value: impl Into<String>) -> Result<SurfaceId, IdentifierError>
Constructs a validated identifier instance.
§Errors
Returns any IdentifierError produced by
validate_surface_identifier when value does not satisfy
the identifier contract.
pub const fn as_str(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SurfaceId
impl<'de> Deserialize<'de> for SurfaceId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SurfaceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SurfaceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SurfaceId
Source§impl Serialize for SurfaceId
impl Serialize for SurfaceId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SurfaceId
Auto Trait Implementations§
impl Freeze for SurfaceId
impl RefUnwindSafe for SurfaceId
impl Send for SurfaceId
impl Sync for SurfaceId
impl Unpin for SurfaceId
impl UnsafeUnpin for SurfaceId
impl UnwindSafe for SurfaceId
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.