pub enum FoamEntry {
Scalar(f64),
Word(String),
Str(String),
Tokens(Vec<FoamValue>),
List(Vec<FoamValue>),
Dimensioned(Dimensioned),
SubDict(FoamDict),
}Expand description
The value bound to one keyword in a FoamDict.
Variants§
Scalar(f64)
A single numeric scalar: startTime 0;.
Word(String)
A single word: application icoFoam; (or function-style default Gauss;).
Str(String)
A single quoted string.
Tokens(Vec<FoamValue>)
A bare, space-separated multi-token value that is not parenthesised:
div(phi,U) Gauss linearUpwind grad(U); → the keyword is div(phi,U)
and the entry is Tokens([Gauss, linearUpwind, grad(U)]).
List(Vec<FoamValue>)
A single parenthesised list: ( … ).
Dimensioned(Dimensioned)
A dimensioned value: [0 2 -2 0 0 0 0] ….
SubDict(FoamDict)
A nested sub-dictionary: keyword { … }.
Trait Implementations§
impl StructuralPartialEq for FoamEntry
Auto Trait Implementations§
impl Freeze for FoamEntry
impl RefUnwindSafe for FoamEntry
impl Send for FoamEntry
impl Sync for FoamEntry
impl Unpin for FoamEntry
impl UnsafeUnpin for FoamEntry
impl UnwindSafe for FoamEntry
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