Struct freya_hooks::UseEditable
source · pub struct UseEditable { /* private fields */ }Expand description
Manage an editable content.
Implementations§
source§impl UseEditable
impl UseEditable
sourcepub fn editor(&self) -> &EditorState
pub fn editor(&self) -> &EditorState
Reference to the editor.
sourcepub fn cursor_attr<'a, T>(&self, cx: Scope<'a, T>) -> AttributeValue<'a>
pub fn cursor_attr<'a, T>(&self, cx: Scope<'a, T>) -> AttributeValue<'a>
Create a cursor attribute.
sourcepub fn highlights_attr<'a, T>(
&self,
cx: Scope<'a, T>,
editor_id: usize
) -> AttributeValue<'a>
pub fn highlights_attr<'a, T>( &self, cx: Scope<'a, T>, editor_id: usize ) -> AttributeValue<'a>
Create a highlights attribute.
sourcepub fn process_event(&self, edit_event: &EditableEvent)
pub fn process_event(&self, edit_event: &EditableEvent)
Process a EditableEvent event.
Trait Implementations§
source§impl Clone for UseEditable
impl Clone for UseEditable
source§fn clone(&self) -> UseEditable
fn clone(&self) -> UseEditable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for UseEditable
impl !Send for UseEditable
impl !Sync for UseEditable
impl Unpin for UseEditable
impl !UnwindSafe for UseEditable
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer