Struct pepper::buffer::BufferCollection
source · pub struct BufferCollection { /* private fields */ }
Implementations§
source§impl BufferCollection
impl BufferCollection
pub fn add_new(&mut self) -> &mut Buffer
pub fn try_get(&self, handle: BufferHandle) -> Option<&Buffer>
pub fn get(&self, handle: BufferHandle) -> &Buffer
pub fn get_mut(&mut self, handle: BufferHandle) -> &mut Buffer
pub fn find_with_path(
&self,
buffers_root: &Path,
path: &Path
) -> Option<BufferHandle>
pub fn iter(&self) -> impl Iterator<Item = &Buffer>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Buffer>
pub fn defer_remove(&self, handle: BufferHandle, events: &mut EditorEventWriter)
pub fn spawn_insert_process(
&mut self,
platform: &mut Platform,
command: Command,
buffer_handle: BufferHandle,
position: BufferPosition,
input: Option<PooledBuf>
)
Trait Implementations§
source§impl Default for BufferCollection
impl Default for BufferCollection
source§fn default() -> BufferCollection
fn default() -> BufferCollection
Returns the “default value” for a type. Read more