[−][src]Struct binjs_io::entropy::dictionary::Dictionary
Methods
impl<T> Dictionary<T>
[src]
pub fn new(Options { depth: depth, width: width }: Options) -> Self
[src]
Create a new dictionary using paths of depth
depth
and windows of width
width.
pub fn bool_by_path(&self) -> Ref<PathPredict<Option<bool>, T>>
[src]
pub fn string_enum_by_path(&self) -> Ref<PathPredict<SharedString, T>>
[src]
pub fn interface_name_by_path(&self) -> Ref<PathPredict<InterfaceName, T>>
[src]
pub fn float_by_path(&self) -> Ref<PathPredict<Option<F64>, T>>
[src]
pub fn unsigned_long_by_path(&self) -> Ref<PathPredict<u32, T>>
[src]
pub fn property_key_by_path(&self) -> Ref<PathPredict<Option<PropertyKey>, T>>
[src]
pub fn identifier_name_by_path(
&self
) -> Ref<PathPredict<Option<IdentifierName>, T>>
[src]
&self
) -> Ref<PathPredict<Option<IdentifierName>, T>>
pub fn string_literal_by_path(
&self
) -> Ref<PathPredict<Option<SharedString>, T>>
[src]
&self
) -> Ref<PathPredict<Option<SharedString>, T>>
pub fn list_length_by_path(&self) -> Ref<PathPredict<Option<u32>, T>>
[src]
pub fn property_key_by_window(
&self
) -> Ref<WindowPredict<Option<PropertyKey>, T>>
[src]
&self
) -> Ref<WindowPredict<Option<PropertyKey>, T>>
pub fn identifier_name_by_window(
&self
) -> Ref<WindowPredict<Option<IdentifierName>, T>>
[src]
&self
) -> Ref<WindowPredict<Option<IdentifierName>, T>>
pub fn string_literal_by_window(
&self
) -> Ref<WindowPredict<Option<SharedString>, T>>
[src]
&self
) -> Ref<WindowPredict<Option<SharedString>, T>>
pub fn unsigned_longs(&self) -> Ref<LinearTable<u32>>
[src]
pub fn string_literals(&self) -> Ref<LinearTable<Option<SharedString>>>
[src]
pub fn identifier_names(&self) -> Ref<LinearTable<Option<IdentifierName>>>
[src]
pub fn property_keys(&self) -> Ref<LinearTable<Option<PropertyKey>>>
[src]
pub fn list_lengths(&self) -> Ref<LinearTable<Option<u32>>>
[src]
pub fn floats(&self) -> Ref<LinearTable<Option<F64>>>
[src]
pub fn depth(&self) -> usize
[src]
Return the depth of the current dictionary.
pub fn len(&self) -> usize
[src]
Return the number of states in this dictionary.
impl Dictionary<Instances>
[src]
pub fn bool_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<bool>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<bool>, Instances>>
pub fn string_enum_by_path_mut(
&mut self
) -> RefMut<PathPredict<SharedString, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<SharedString, Instances>>
pub fn interface_name_by_path_mut(
&mut self
) -> RefMut<PathPredict<InterfaceName, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<InterfaceName, Instances>>
pub fn float_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<F64>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<F64>, Instances>>
pub fn unsigned_long_by_path_mut(
&mut self
) -> RefMut<PathPredict<u32, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<u32, Instances>>
pub fn property_key_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<PropertyKey>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<PropertyKey>, Instances>>
pub fn identifier_name_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<IdentifierName>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<IdentifierName>, Instances>>
pub fn string_literal_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<SharedString>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<SharedString>, Instances>>
pub fn list_length_by_path_mut(
&mut self
) -> RefMut<PathPredict<Option<u32>, Instances>>
[src]
&mut self
) -> RefMut<PathPredict<Option<u32>, Instances>>
pub fn property_key_by_window_mut(
&mut self
) -> RefMut<WindowPredict<Option<PropertyKey>, Instances>>
[src]
&mut self
) -> RefMut<WindowPredict<Option<PropertyKey>, Instances>>
pub fn identifier_name_by_window_mut(
&mut self
) -> RefMut<WindowPredict<Option<IdentifierName>, Instances>>
[src]
&mut self
) -> RefMut<WindowPredict<Option<IdentifierName>, Instances>>
pub fn string_literal_by_window_mut(
&mut self
) -> RefMut<WindowPredict<Option<SharedString>, Instances>>
[src]
&mut self
) -> RefMut<WindowPredict<Option<SharedString>, Instances>>
pub fn with_grammar_fallback(&self, fallback: Dictionary<Instances>) -> Self
[src]
Combine a dictionary obtained by sampling (self
) and a baseline dictionary
(obtained by entropy::baseline
) to produce a dictionary able to handle
values that grammatically correct but have not been witnessed during
sampling.
Trait Implementations
impl<T: Clone> Clone for Dictionary<T>
[src]
fn clone(&self) -> Dictionary<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for Dictionary<T>
[src]
impl<'de, T> Deserialize<'de> for Dictionary<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl InstancesToProbabilities for Dictionary<Instances>
[src]
type AsProbabilities = Dictionary<SymbolInfo>
fn instances_to_probabilities(
&self,
_description: &str
) -> Dictionary<SymbolInfo>
[src]
&self,
_description: &str
) -> Dictionary<SymbolInfo>
Convert a dictionary counting instances into a dictionary that counts probabilities.
impl<T> Serialize for Dictionary<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Dictionary<T>
impl<T> !Send for Dictionary<T>
impl<T> !Sync for Dictionary<T>
impl<T> Unpin for Dictionary<T>
impl<T> !UnwindSafe for Dictionary<T>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[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> 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, 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<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,