pub struct FactorId(/* private fields */);Expand description
Type-safe factor identifier wrapper
This newtype provides compile-time guarantees that:
- Factor IDs cannot be accidentally mixed with other string types
- All factor-scoped operations explicitly require a FactorId
- Cross-factor operations are caught at compile time
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FactorId
impl<'de> Deserialize<'de> for FactorId
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 FactorId
impl StructuralPartialEq for FactorId
Auto Trait Implementations§
impl Freeze for FactorId
impl RefUnwindSafe for FactorId
impl Send for FactorId
impl Sync for FactorId
impl Unpin for FactorId
impl UnsafeUnpin for FactorId
impl UnwindSafe for FactorId
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