pub struct PropBlock { /* private fields */ }Implementations§
Source§impl PropBlock
impl PropBlock
pub fn get_selector(&self) -> Result<PropSelector, AscesisError>
pub fn verify_selector( &self, expected: PropSelector, ) -> Result<(), AscesisError>
pub fn get<S: AsRef<str>>(&self, key: S) -> Option<&PropValue>
pub fn get_size<S: AsRef<str>>(&self, key: S) -> Option<u64>
pub fn get_name<S: AsRef<str>>(&self, key: S) -> Option<&str>
pub fn get_identifier<S: AsRef<str>>(&self, key: S) -> Option<&str>
pub fn get_name_or_identifier<S: AsRef<str>>( &self, key: S, ) -> Result<Option<&str>, AscesisError>
pub fn get_nested_size<I, S>( &self, subblock_keys: I, value_key: S, ) -> Option<u64>
pub fn get_nested_name<I, S>( &self, subblock_keys: I, value_key: S, ) -> Option<&str>
pub fn get_nested_identifier<I, S>( &self, subblock_keys: I, value_key: S, ) -> Option<&str>
pub fn get_sat_encoding(&self) -> Result<Option<Encoding>, AscesisError>
pub fn get_sat_search(&self) -> Result<Option<Search>, AscesisError>
pub fn get_vis_title(&self) -> Result<Option<&str>, AscesisError>
pub fn get_vis_labels( &self, ) -> Result<Option<&BTreeMap<String, PropValue>>, AscesisError>
Trait Implementations§
Source§impl Compilable for PropBlock
impl Compilable for PropBlock
Source§impl From<PropBlock> for CesFileBlock
impl From<PropBlock> for CesFileBlock
Source§impl FromStr for PropBlock
impl FromStr for PropBlock
Source§type Err = ParseError<usize, String, AscesisError>
type Err = ParseError<usize, String, AscesisError>
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<Self, ParseError<usize, String, AscesisError>>
fn from_str(s: &str) -> Result<Self, ParseError<usize, String, AscesisError>>
Parses a string
s to return a value of this type. Read moreimpl Eq for PropBlock
impl StructuralPartialEq for PropBlock
Auto Trait Implementations§
impl Freeze for PropBlock
impl RefUnwindSafe for PropBlock
impl Send for PropBlock
impl Sync for PropBlock
impl Unpin for PropBlock
impl UnwindSafe for PropBlock
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,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.