Struct amfnengine::core::list_summary::ListSummary [−]
Implementations
impl ListSummary
List of summary items implementation.
pub fn new() -> ListSummary
pub fn add_summary(
&mut self,
name_param: &str,
label_param: &str,
label_expr_param: &str,
result_param: &str,
result_expr_param: &str
) -> bool
&mut self,
name_param: &str,
label_param: &str,
label_expr_param: &str,
result_param: &str,
result_expr_param: &str
) -> bool
Add a new summary item into the summary item list.
Arguments
name_param
- Summary element name.label_param
- Summary element label.label_expr_param
- Element label expression.result_param
- Summary element result.result_expr_param
- Element result expression.
Return
- True if successful, otherwise false.
pub fn list(&self) -> &Vec<ElemSummary>
pub fn name(&self) -> &str
pub fn label(&self) -> &str
pub fn label_expr(&self) -> &str
pub fn result(&self) -> &str
pub fn result_expr(&self) -> &str
pub fn remove(&mut self) -> bool
Remove the selected summary item from the summary item list.
Return
- True if successful, otherwise false.
Trait Implementations
impl Default for ListSummary
List of summary items default implementation.
impl ListTrait for ListSummary
List of summary items list implementation.
fn clear(&mut self)
Clear all summary items from the summary item list.
fn count(&self) -> usize
fn index(&self) -> usize
fn get_element(&self, index_param: usize) -> bool
Select a summary item based upon an index value.
Arguments
index_param
- The index value of the summary item to select (starting from 0).
Return
- True if successful, otherwise false.
fn set_index(&self, index_param: usize) -> bool
Auto Trait Implementations
impl !RefUnwindSafe for ListSummary
impl Send for ListSummary
impl !Sync for ListSummary
impl Unpin for ListSummary
impl UnwindSafe for ListSummary
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,