Struct moras::storage::rope_store::Text
source · pub struct Text {
share_status: FileShareStatus,
data: Box<Rope>,
path: PathBuf,
version: usize,
dirty: bool,
last_modified: SystemTime,
concurrent_share: ConcurrencyShare,
}
Fields§
§data: Box<Rope>
§path: PathBuf
§version: usize
§dirty: bool
§last_modified: SystemTime
Implementations§
Trait Implementations§
source§impl BasicFile<Rope, Modification> for Text
impl BasicFile<Rope, Modification> for Text
fn get_path(&self) -> &PathBuf
fn get_path_str(&self) -> String
fn is_dirty(&self) -> bool
fn set_dirty(&mut self, dirty: bool)
fn to_string(&self) -> String
fn save(&mut self) -> Result<(), Box<dyn Error>>
fn get_raw(&mut self) -> &mut Rope
fn handle_modify(&mut self, modify: &Modification) -> Result<(), Box<dyn Error>>
source§impl HistorianFile<Rope, Modification, LinkedList<ClientCursor>> for Text
impl HistorianFile<Rope, Modification, LinkedList<ClientCursor>> for Text
fn get_version(&self) -> usize
fn merge_history( &mut self, modifies: &[Modification], cursors: &mut LinkedList<ClientCursor>, ) -> Result<(), Box<dyn Error>>
impl MFile<Rope, Modification, LinkedList<ClientCursor>> for Text
Auto Trait Implementations§
impl !Freeze for Text
impl !RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl !UnwindSafe for Text
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request