pub struct StringAttribute { /* private fields */ }Implementations§
Source§impl StringAttribute
impl StringAttribute
pub fn new(name: CheetahString, changeable: bool) -> Self
Trait Implementations§
Source§impl Attribute for StringAttribute
impl Attribute for StringAttribute
Source§fn verify(&self, _value: &str) -> Result<(), String>
fn verify(&self, _value: &str) -> Result<(), String>
Verify that the provided string value is valid for this attribute.
Implementations should validate according to their specific rules.
Source§fn name(&self) -> &CheetahString
fn name(&self) -> &CheetahString
Get the name of this attribute.
Source§fn is_changeable(&self) -> bool
fn is_changeable(&self) -> bool
Check if this attribute can be changed after creation.
Source§impl Clone for StringAttribute
impl Clone for StringAttribute
Auto Trait Implementations§
impl Freeze for StringAttribute
impl RefUnwindSafe for StringAttribute
impl Send for StringAttribute
impl Sync for StringAttribute
impl Unpin for StringAttribute
impl UnsafeUnpin for StringAttribute
impl UnwindSafe for StringAttribute
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