pub struct Plugin { /* private fields */ }
Implementations
sourceimpl Plugin
impl Plugin
pub fn new(game_id: GameId, filepath: &Path) -> Plugin
pub fn parse(&mut self, input: &[u8], load_header_only: bool) -> Result<(), Error>
pub fn parse_open_file(
&mut self,
file: File,
load_header_only: bool
) -> Result<(), Error>
pub fn parse_file(&mut self, load_header_only: bool) -> Result<(), Error>
pub fn game_id(&self) -> &GameId
pub fn path(&self) -> &Path
pub fn filename(&self) -> Option<String>
pub fn masters(&self) -> Result<Vec<String>, Error>
pub fn is_master_file(&self) -> bool
pub fn is_light_master_file(&self) -> bool
👎Deprecated:
This has been renamed to Plugin::is_light_plugin() for clarity.
pub fn is_light_plugin(&self) -> bool
pub fn is_valid(game_id: GameId, filepath: &Path, load_header_only: bool) -> bool
pub fn description(&self) -> Result<Option<String>, Error>
pub fn header_version(&self) -> Option<f32>
pub fn record_and_group_count(&self) -> Option<u32>
pub fn count_override_records(&self) -> usize
pub fn overlaps_with(&self, other: &Self) -> bool
sourcepub fn overlap_size(&self, others: &[&Self]) -> usize
pub fn overlap_size(&self, others: &[&Self]) -> usize
Count the number of records that appear in this plugin and one or more the others passed. If more than one other contains the same record, it is only counted once.
pub fn is_valid_as_light_master(&self) -> bool
👎Deprecated:
This has been renamed to Plugin::is_valid_as_light_plugin() for clarity.
pub fn is_valid_as_light_plugin(&self) -> bool
Trait Implementations
sourceimpl PartialEq<Plugin> for Plugin
impl PartialEq<Plugin> for Plugin
impl Eq for Plugin
impl StructuralEq for Plugin
impl StructuralPartialEq for Plugin
Auto Trait Implementations
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnwindSafe for Plugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more