pub struct ConfigTable {
pub lib: Symbol,
pub table: Expr,
}Expand description
One library’s configuration table.
Fields§
§lib: SymbolLibrary id whose configuration this table carries.
table: ExprConfiguration data; always an Expr::Map when built by this crate.
Implementations§
Source§impl ConfigTable
impl ConfigTable
Sourcepub fn new(lib: Symbol, table: Expr) -> ConfigResult<Self>
pub fn new(lib: Symbol, table: Expr) -> ConfigResult<Self>
Creates a table, rejecting non-map expressions.
Sourcepub fn entries(&self) -> ConfigResult<&[(Expr, Expr)]>
pub fn entries(&self) -> ConfigResult<&[(Expr, Expr)]>
Borrows this table’s map entries.
Trait Implementations§
Source§impl Clone for ConfigTable
impl Clone for ConfigTable
Source§fn clone(&self) -> ConfigTable
fn clone(&self) -> ConfigTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigTable
impl Debug for ConfigTable
impl Eq for ConfigTable
Source§impl PartialEq for ConfigTable
impl PartialEq for ConfigTable
impl StructuralPartialEq for ConfigTable
Auto Trait Implementations§
impl Freeze for ConfigTable
impl RefUnwindSafe for ConfigTable
impl Send for ConfigTable
impl Sync for ConfigTable
impl Unpin for ConfigTable
impl UnsafeUnpin for ConfigTable
impl UnwindSafe for ConfigTable
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