pub struct EditorModel { /* private fields */ }
Implementations§
Source§impl EditorModel
impl EditorModel
pub fn new( project_config: HydrateProjectConfiguration, schema_set: SchemaSet, ) -> Self
pub fn path_node_schema(&self) -> &SchemaNamedType
pub fn path_node_root_schema(&self) -> &SchemaNamedType
pub fn data_sources(&self) -> &HashMap<AssetSourceId, Box<dyn DataSource>>
pub fn is_path_node_or_root(&self, fingerprint: SchemaFingerprint) -> bool
pub fn is_generated_asset(&self, asset_id: AssetId) -> bool
pub fn persist_generated_asset(&mut self, asset_id: AssetId)
pub fn commit_all_pending_undo_contexts(&mut self)
pub fn cancel_all_pending_undo_contexts(&mut self)
pub fn any_edit_context_has_unsaved_changes(&self) -> bool
pub fn pending_file_operations(&self) -> PendingFileOperations
pub fn schema_set(&self) -> &SchemaSet
pub fn clone_schema_set(&self) -> SchemaSet
pub fn root_edit_context(&self) -> &EditContext
pub fn root_edit_context_mut(&mut self) -> &mut EditContext
pub fn asset_path( &self, asset_id: AssetId, asset_path_cache: &AssetPathCache, ) -> Option<AssetPath>
pub fn asset_display_name_long( &self, asset_id: AssetId, asset_path_cache: &AssetPathCache, ) -> String
pub fn data_source( &mut self, asset_source_id: AssetSourceId, ) -> Option<&dyn DataSource>
pub fn is_a_root_asset(&self, asset_id: AssetId) -> bool
pub fn add_file_system_id_based_asset_source<RootPathT: Into<PathBuf>>( &mut self, project_config: &HydrateProjectConfiguration, data_source_name: &str, file_system_root_path: RootPathT, import_job_to_queue: &mut ImportJobToQueue, ) -> AssetSourceId
pub fn add_file_system_path_based_data_source<RootPathT: Into<PathBuf>>( &mut self, project_config: &HydrateProjectConfiguration, data_source_name: &str, file_system_root_path: RootPathT, importer_registry: &ImporterRegistry, import_jobs_to_queue: &mut ImportJobToQueue, ) -> AssetSourceId
pub fn save_root_edit_context(&mut self)
pub fn revert_root_edit_context( &mut self, project_config: &HydrateProjectConfiguration, import_job_to_queue: &mut ImportJobToQueue, )
pub fn close_file_system_source(&mut self, _asset_source_id: AssetSourceId)
pub fn open_edit_context( &mut self, assets: &[AssetId], ) -> DataSetResult<EditContextKey>
pub fn flush_edit_context_to_root( &mut self, edit_context: EditContextKey, ) -> DataSetResult<()>
pub fn close_edit_context(&mut self, edit_context: EditContextKey)
pub fn undo(&mut self) -> DataSetResult<()>
pub fn redo(&mut self) -> DataSetResult<()>
Auto Trait Implementations§
impl Freeze for EditorModel
impl !RefUnwindSafe for EditorModel
impl !Send for EditorModel
impl !Sync for EditorModel
impl Unpin for EditorModel
impl !UnwindSafe for EditorModel
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