pub struct SavedAiRules {
pub image: Option<Value>,
pub semantic: Option<Value>,
}Expand description
A saved filter’s image and semantic rules, each kept as the whole
value it was read as, so that fields falcon doesn’t know come back
unchanged when the filter is saved again.
What is known of them is the field that turns each on: image.itemId
(read as the id of the item to look like) and semantic.value (read as
the description). Both readings are falcon’s, from the names; no file
written by Eagle with these rules has been seen. A value that isn’t a
usable string is still kept, and counts as a rule that can’t be read.
Fields§
§image: Option<Value>§semantic: Option<Value>Implementations§
Source§impl SavedAiRules
impl SavedAiRules
Sourcepub fn from_rule(rule: &Value) -> SavedAiRules
pub fn from_rule(rule: &Value) -> SavedAiRules
Reads the rules from a rule object. An empty object is no rule.
Sourcepub fn for_text(text: &str) -> SavedAiRules
pub fn for_text(text: &str) -> SavedAiRules
The rules for a search by description.
Sourcepub fn for_item(id: &str) -> SavedAiRules
pub fn for_item(id: &str) -> SavedAiRules
The rules for a search by an item in the library.
pub fn image_on(&self) -> bool
pub fn semantic_on(&self) -> bool
pub fn is_active(&self) -> bool
Sourcepub fn image_item(&self) -> Option<&str>
pub fn image_item(&self) -> Option<&str>
The item to look like, when the rule is on and can be read.
Sourcepub fn semantic_text(&self) -> Option<&str>
pub fn semantic_text(&self) -> Option<&str>
The description to search by, when the rule is on and can be read.
Sourcepub fn has_unreadable(&self) -> bool
pub fn has_unreadable(&self) -> bool
A rule is on but its value can’t be searched by.
Trait Implementations§
Source§impl Clone for SavedAiRules
impl Clone for SavedAiRules
Source§fn clone(&self) -> SavedAiRules
fn clone(&self) -> SavedAiRules
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SavedAiRules
impl Debug for SavedAiRules
Source§impl Default for SavedAiRules
impl Default for SavedAiRules
Source§fn default() -> SavedAiRules
fn default() -> SavedAiRules
Source§impl PartialEq for SavedAiRules
impl PartialEq for SavedAiRules
impl StructuralPartialEq for SavedAiRules
Auto Trait Implementations§
impl Freeze for SavedAiRules
impl RefUnwindSafe for SavedAiRules
impl Send for SavedAiRules
impl Sync for SavedAiRules
impl Unpin for SavedAiRules
impl UnsafeUnpin for SavedAiRules
impl UnwindSafe for SavedAiRules
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().