[−][src]Struct elektra::key::BinaryKey
Methods
impl<'a> BinaryKey<'a>
[src]
pub fn duplicate<'b>(&'a self) -> BinaryKey<'b>
[src]
Returns a deep copy of the key.
ⓘImportant traits for MetaIter<'a, T>pub fn meta_iter<'b>(&'b self) -> MetaIter<'b, BinaryKey<'a>>
[src]
ⓘImportant traits for MetaIter<'a, T>
Returns an iterator over the key's metakeys.
ⓘImportant traits for NameIter<'a, T>pub fn name_iter<'b>(&'b self) -> NameIter<'b, BinaryKey<'a>>
[src]
ⓘImportant traits for NameIter<'a, T>
Returns an iterator over the key's name.
Trait Implementations
impl<'a> ReadableKey for BinaryKey<'a>
[src]
type GetValue = Vec<u8>
The type returned by value.
unsafe fn from_ptr(ptr: *mut Key) -> BinaryKey<'a>
[src]
fn value(&self) -> Self::GetValue
[src]
fn name(&self) -> Cow<str>
[src]
fn basename(&self) -> Cow<str>
[src]
fn basename_size(&self) -> isize
[src]
fn fullname_size(&self) -> usize
[src]
fn get_ref(&self) -> isize
[src]
fn current_meta(&self) -> ReadOnly<StringKey>
[src]
fn fullname(&self) -> String
[src]
fn namespace(&self) -> u32
[src]
fn is_spec(&self) -> bool
[src]
fn is_dir(&self) -> bool
[src]
fn is_proc(&self) -> bool
[src]
fn is_user(&self) -> bool
[src]
fn is_system(&self) -> bool
[src]
fn is_cascading(&self) -> bool
[src]
fn value_size(&self) -> usize
[src]
fn is_binary(&self) -> bool
[src]
fn is_string(&self) -> bool
[src]
fn is_below(&self, other: &Self) -> bool where
Self: Sized,
[src]
Self: Sized,
fn is_direct_below(&self, other: &Self) -> bool where
Self: Sized,
[src]
Self: Sized,
fn is_inactive(&self) -> bool
[src]
fn meta(&self, metaname: &str) -> Result<ReadOnly<StringKey>, KeyNotFoundError> where
Self: Sized,
[src]
Self: Sized,
impl<'a> WriteableKey for BinaryKey<'a>
[src]
type SetValue = &'a [u8]
The value that is passed to set_value.
fn as_ptr(&mut self) -> *mut Key
[src]
fn set_value(&mut self, value: Self::SetValue)
[src]
fn new(name: &str) -> Result<Self, KeyNameInvalidError> where
Self: Sized,
[src]
Self: Sized,
fn new_empty() -> Self where
Self: Sized,
[src]
Self: Sized,
unsafe fn inc_ref(&mut self) -> isize
[src]
unsafe fn dec_ref(&mut self) -> isize
[src]
fn clear(&mut self)
[src]
fn set_name(&mut self, name: &str) -> Result<u32, KeyNameInvalidError>
[src]
fn set_basename(&mut self, basename: &str) -> Result<(), KeyNameReadOnlyError>
[src]
fn add_basename(&mut self, basename: &str) -> Result<(), KeyNameReadOnlyError>
[src]
fn add_name(&mut self, name: &str) -> Result<(), KeyNameInvalidError>
[src]
fn copy_all_meta(&mut self, source: &Self) where
Self: Sized,
[src]
Self: Sized,
fn copy_meta(&mut self, source: &Self, metaname: &str) -> i32 where
Self: Sized,
[src]
Self: Sized,
fn set_meta(
&mut self,
metaname: &str,
metavalue: &str
) -> Result<usize, KeyNameInvalidError>
[src]
&mut self,
metaname: &str,
metavalue: &str
) -> Result<usize, KeyNameInvalidError>
fn delete_meta(&mut self, metaname: &str) -> Result<usize, KeyNameInvalidError>
[src]
fn rewind_meta(&mut self)
[src]
impl<'_> AsRef<_Key> for BinaryKey<'_>
[src]
impl<'_> Eq for BinaryKey<'_>
[src]
impl<'_> Drop for BinaryKey<'_>
[src]
impl<'_> Default for BinaryKey<'_>
[src]
impl<'_> Clone for BinaryKey<'_>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> PartialOrd<BinaryKey<'_>> for BinaryKey<'_>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<BinaryKey<'_>> for BinaryKey<'_>
[src]
impl<'_> Ord for BinaryKey<'_>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'_, '_> From<StringKey<'_>> for BinaryKey<'_>
[src]
impl<'_, '_> From<BinaryKey<'_>> for StringKey<'_>
[src]
impl<'a> Debug for BinaryKey<'a>
[src]
Auto Trait Implementations
impl<'a> !Sync for BinaryKey<'a>
impl<'a> !Send for BinaryKey<'a>
impl<'a> Unpin for BinaryKey<'a>
impl<'a> !UnwindSafe for BinaryKey<'a>
impl<'a> RefUnwindSafe for BinaryKey<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,