#[repr(C)]pub enum VSMapPropertyError {
Success = 0,
Unset = 1,
Type = 2,
Index = 4,
Error = 3,
}
Expand description
When a mapGet*
function fails, it returns one of these in the err parameter.
All errors are non-zero.
Variants§
Success = 0
Unset = 1
The requested key was not found in the map.
Type = 2
The wrong function was used to retrieve the property.
E.g. mapGetInt()
was used on a property of type
VSPropertyType::Float
.
Index = 4
The requested index was out of bounds.
Error = 3
The map has the error state set.
Trait Implementations§
Source§impl Clone for VSMapPropertyError
impl Clone for VSMapPropertyError
Source§fn clone(&self) -> VSMapPropertyError
fn clone(&self) -> VSMapPropertyError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VSMapPropertyError
impl Debug for VSMapPropertyError
Source§impl Hash for VSMapPropertyError
impl Hash for VSMapPropertyError
Source§impl Ord for VSMapPropertyError
impl Ord for VSMapPropertyError
Source§fn cmp(&self, other: &VSMapPropertyError) -> Ordering
fn cmp(&self, other: &VSMapPropertyError) -> Ordering
1.21.0 · 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
Source§impl PartialEq for VSMapPropertyError
impl PartialEq for VSMapPropertyError
Source§impl PartialOrd for VSMapPropertyError
impl PartialOrd for VSMapPropertyError
impl Copy for VSMapPropertyError
impl Eq for VSMapPropertyError
impl StructuralPartialEq for VSMapPropertyError
Auto Trait Implementations§
impl Freeze for VSMapPropertyError
impl RefUnwindSafe for VSMapPropertyError
impl Send for VSMapPropertyError
impl Sync for VSMapPropertyError
impl Unpin for VSMapPropertyError
impl UnwindSafe for VSMapPropertyError
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